[arquillian-issues] [JBoss JIRA] (ARQ-271) TestEnricher should be called in @BeforeClass
Chris Williams (JIRA)
jira-events at lists.jboss.org
Wed Apr 18 14:53:18 EDT 2012
[ https://issues.jboss.org/browse/ARQ-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12685414#comment-12685414 ]
Chris Williams commented on ARQ-271:
------------------------------------
Any update on this? It looks like it didn't make it into 1.0.0-Final. Is there a work around? Can I force the enricher to execute manually from within my test's @BeforeClass method?
> TestEnricher should be called in @BeforeClass
> ---------------------------------------------
>
> Key: ARQ-271
> URL: https://issues.jboss.org/browse/ARQ-271
> Project: Arquillian
> Issue Type: Feature Request
> Components: Runtime Enricher SPI, Test Harness Integration
> Reporter: Thomas Diesler
> Assignee: Aslak Knutsen
>
> The TestEnricher API could be extended such that static fields can be initialized.
> @Inject
> public static BundleContext context;
>
> @BeforeClass
> public static void beforeClass()
> {
> System.out.println("BeforeClass: " + context);
> }
> There would be two calls to TestEnricher.
> #1 After test class load, but before a call to @BeforeClass.
> #2 After instantiation of the test class, but before a call to @Before
> (#2 is the current behaviour)
--
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
More information about the arquillian-issues
mailing list