-
Bug
-
Resolution: Done
-
Major
-
9.4.0.Final
This test is currently not executed because it does not declare params and AbstractInfinispanTest mistakenly detects is as name duplicate.
Running it from command line individually will show 0 executed tests.
Need to add params to make its name unique and pass AbstractInfinispanTest's validation:
@Override protected String parameters() { return "[" + storageType + "]"; }
After fixing this you can see that it is finally executed and it fails; here's one of the failures:
[ERROR] testScriptWithoutParam[OFF_HEAP](org.infinispan.scripting.ScriptingDataStoresTest) Time elapsed: 0.015 s <<< FAILURE! java.lang.AssertionError: expected:<javaValue:additionFromJavascript> but was:<javaValue> at org.testng.AssertJUnit.fail(AssertJUnit.java:59) at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364) at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80) at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:88) at org.infinispan.scripting.ScriptingDataStoresTest.testScriptWithoutParam(ScriptingDataStoresTest.java:81) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85) at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:196) at org.infinispan.commons.test.TestNGLongTestsHook.run(TestNGLongTestsHook.java:24) at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:208) at org.testng.internal.Invoker.invokeMethod(Invoker.java:635) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108) at org.testng.TestRunner.privateRun(TestRunner.java:774) at org.testng.TestRunner.run(TestRunner.java:624) at org.testng.SuiteRunner.runTest(SuiteRunner.java:359) at org.testng.SuiteRunner.access$000(SuiteRunner.java:39) at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:393) at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
- is related to
-
ISPN-9475 AbstractInfinispanTest mistakenly detects some test with params as duplicates
- Closed