[
https://issues.apache.org/jira/browse/MYFACESTEST-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887648#action_12887648
]
Leonardo Uribe commented on MYFACESTEST-19:
-------------------------------------------
I committed the patch, so I'll keep an eye on this issue to update future
enhancements or documentation. Thanks Rudy.
> JUnit4 Runner that runs each Test method in a seperate classloader
> ------------------------------------------------------------------
>
> Key: MYFACESTEST-19
> URL: https://issues.apache.org/jira/browse/MYFACESTEST-19
> Project: MyFaces Test
> Issue Type: New Feature
> Affects Versions: 1.0.0-SNAPSHOT
> Reporter: Rudy De Busscher
> Attachments: MyfacesTest-19.patch
>
>
> When each test that runs, is supported by a new instance of a custom class
> loader, we can effectively start with a 'clean' situation. Even the
> constants are reset.
> So we can even change the value of the variable PARAMETER between each Test.
> static final String PARAMETER = WebXmlUtils.getInitParameter(PARAMETER_KEY);
> Besides the TestPerClassLoaderRunner (use it by setting the annotation on the
> class @RunWith(value = TestPerClassLoaderRunner.class)) you can ask for the
> executed test method name during the Before and After methods by calling the
> static method TestPerClassLoaderRunner#getTestMethodName. This way you can
> change the setup method according to the test methods which runs.
> The test method name awareness can be added seperately from the Class loader
> thing by using the NamedRunner.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.