在 GCP 中,当创建资源高于免费套餐限制的虚拟机时,不会收到通知。通知中出现以下模式的错误消息。那么,Google云平台虚拟机允许的最大资源是多少呢?
创建 VM 实例“instance-2”及其启动磁盘“instance-2”超出配额“C2_CPUS”。限制:asia-south1 区域为 0.0。
运行此代码时出现以下错误:(ColorMatrixgetarray()
返回 float[])
74 public void testHueShift() {
75 ColorMatrix cm1 = new ColorMatrix();
76 ColorMatrix cm2 = hueShift(0f);
77 assertArrayEquals(cm1.getArray(), cm2.getArray(), 0f);
78 }
Run Code Online (Sandbox Code Playgroud)
错误:
----- begin exception -----
java.lang.NoClassDefFoundError: org.junit.Assert
at com.Common.lib.test.ColorFilterFactoryTest.testHueShift(ColorFilterFactoryTest.java:77)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:545)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551)
----- end exception -----
Run Code Online (Sandbox Code Playgroud)
但项目构建路径有它:
编辑
这是测试类类路径
这是被测试的类(它是一个库项目)