Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-6137

ScriptMetadataTest.testBrokenParameters fails since the logging range changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.2.0.Beta2
    • 8.2.0.Beta1
    • Test Suite
    • None

      The ISPN-6123 fix changed the logging ids for the scripting module, breaking `ScriptMetadataTest.testBrokenParameters`:

      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
      

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: