Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-736

Problem with ContainerController and passing config

    XMLWordPrintable

Details

    Description

      I am using ContainerController to manually start and stop the container between test executions and pass new configuration parameters if needed. The problem is that once i pass some parameters for a test, the new configuration with the extra parameters is still there for the next test, if the test doesn't define any extra parameters and should work only with the configuration provided by arquillian.xml.

      What i was expecting is to add extra configuration parameters for a specific test case and start the container, for the next test execution and if the test doesn't define any extra configuration parameters, it should start with the default configuration as defined in the arquillian.xml. Instead what is happenming is the following:

      Test1 -> define extra param1=12345 -> containerController.start(container, extraParameters1) -> Configuration = arquillian.xml + param1 - OK
      Test2 > define extra param2 =54321> containerController.start(container, extraParameters2) -> Configuration = arquillian.xml + param2 - OK
      Test3 -> define NO EXTRA PARAM -> containerController.start(container) -> Configuration = arquillian.xml + param2 - NOT OK

      If the previous test started the container with some extra parameters (param2) and the next test doesn't define any extra parameters, the configuration keeps the previous extra parameters instead of discard them.

      On the containerController.stop() the configuration should be updated again.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gvagenas_jira George Vagenas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: