Uploaded image for project: 'Citrus'
  1. Citrus
  2. CITRUS-192

Nested anonymous test actions fail

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.4
    • Component/s: citrus-core
    • Labels:
      None

      Description

      The test execution fails with ArrayIndexOutOfBounds exception when nesting test actions in assert exception as anonymous test action in Java DSL.

      java.lang.ArrayIndexOutOfBoundsException: -1
      at java.util.ArrayList.elementData(Unknown Source)
      at java.util.ArrayList.remove(Unknown Source)
      at com.consol.citrus.dsl.CitrusTestBuilder.assertException(CitrusTestBuilder.java:788)
      at com.consol.citrus.dsl.TestNGCitrusTestBuilder.assertException(TestNGCitrusTestBuilder.java:547)
      at de.mnet.elektra.integtest.ReportGenerationFailureTest.configure(ReportGenerationFailureTest.java:99)
      at com.consol.citrus.dsl.TestNGCitrusTestBuilder.executeTest(TestNGCitrusTestBuilder.java:106)

        Attachments

          Activity

            People

            • Assignee:
              deppisch Christoph Deppisch
              Reporter:
              deppisch Christoph Deppisch
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: