]
Adrian Nistor updated ISPN-6137:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Integrated. Thanks!
ScriptMetadataTest.testBrokenParameters fails since the logging range
changes
-----------------------------------------------------------------------------
Key: ISPN-6137
URL:
https://issues.jboss.org/browse/ISPN-6137
Project: Infinispan
Issue Type: Bug
Components: Test Suite - Server
Affects Versions: 8.2.0.Beta1
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 8.2.0.CR1
The ISPN-6123 fix changed the logging ids for the scripting module, breaking
`ScriptMetadataTest.testBrokenParameters`:
{noformat}
The exception was thrown with the wrong message: expected "^ISPN021011.*" but
got "ISPN026011: Script parameters must be declared using the array notation, e.g.
[a,b,c]"
at org.testng.internal.Invoker.handleInvocationResults(Invoker.java:1481)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:754)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
at org.testng.SuiteRunner.access$000(SuiteRunner.java:38)
at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:382)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: ISPN026011: Script parameters must be
declared using the array notation, e.g. [a,b,c]
at
org.infinispan.scripting.impl.ScriptMetadataParser.unarray(ScriptMetadataParser.java:99)
at
org.infinispan.scripting.impl.ScriptMetadataParser.parse(ScriptMetadataParser.java:56)
at
org.infinispan.scripting.ScriptMetadataTest.testBrokenParameters(ScriptMetadataTest.java:63)
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:497)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
... 14 more
{noformat}