George Vagenas created ARQ-736:
----------------------------------
Summary: Problem with ContainerController and passing config
Key: ARQ-736
URL:
https://issues.jboss.org/browse/ARQ-736
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Base Implementation, Deployable Containers SPI
Affects Versions: 1.0.0.CR7
Reporter: George Vagenas
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira