[
http://issues.ops4j.org/browse/PAXEXAM-42?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12145#action_12145
]
Toni Menzel commented on PAXEXAM-42:
------------------------------------
Sample that works now:
@RunWith( JUnit4TestRunner.class )
@Configuration( extend = MasterProfile.class )
public class ClassConfigurationTest
{
@Configuration( extend = SubProfile.class )
public Option[] configure()
{
return new Option[]{ logProfile() };
}
@Test
public void use()
{
}
}
While: body has precedence over Method Annotation Extend over Class Annotation
Extend.
> Make @Configuration extendable by attribute: @Configuration (
> MyOptionProfile.class )
> -------------------------------------------------------------------------------------
>
> Key: PAXEXAM-42
> URL: http://issues.ops4j.org/browse/PAXEXAM-42
> Project: Pax Exam
> Issue Type: Improvement
> Reporter: Toni Menzel
> Assignee: Toni Menzel
>
> During looking at first class support for certain popular Frameworks
> (SpringDM) i found it would be quite natural to let
> the @Configuration annotation settable on class wide scope:
> @RunWith( JUnit4TestRunner.class )
> @Configuration( extend = MasterProfile.class )
> public class ClassConfigurationTest
> {
> ..
> }
> Parameter "extend" is of type Class<? extends CompositeOption> .. defaulting
> to an empty option (so you don't have to specify anything, but you can).
> Also, the syntax should be allowed and recognized when using @Configaration
> on Methods as before:
> @Configuration( extend = SubProfile.class )
> public Option[] configure()
> {
> ..
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general