[arquillian-issues] [JBoss JIRA] Commented: (ARQ-30) @Deployment should have some intelligent defaults
Pete Muir (JIRA)
jira-events at lists.jboss.org
Tue Apr 27 11:25:11 EDT 2010
[ https://jira.jboss.org/jira/browse/ARQ-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12527726#action_12527726 ]
Pete Muir commented on ARQ-30:
------------------------------
Here is a more full example:
public class DefaultConfiguration {
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create("test.jar", BeanArchive.class)
.addCurrentPackage();
}
}
public class BasicDecoratorResolutionTest extends Arquillian
{
@Deployment(basedOn=DefaultConfiguration.class)
public static Archive<?> deploy(BeanArchive archive)
{
return archive.decorate(SimpleDecorator.class, ComplexDecorator.class);
}
}
In general I dislike mixing the fluent API and the annotations, it seems unwieldy.
Whilst Shrinkwrap doesn't support addCurrentPackage, we could provide this via a Shrinkwrap ApplicationArchiveProcessor, only available in Arquillian (Arquillian does the actual work of adding the current package).
Furthermore, I think we keep this "single-inheritence" of archives.
> @Deployment should have some intelligent defaults
> -------------------------------------------------
>
> Key: ARQ-30
> URL: https://jira.jboss.org/jira/browse/ARQ-30
> Project: Arquillian
> Issue Type: Task
> Components: Packaging Enricher SPI
> Reporter: Aslak Knutsen
> Fix For: 1.0.0.Alpha2
>
>
> The API @Deployment should have some smart auto packaging options to help package the test
> - Add The TestCase itself
> - Add the TestCase package recursively
> - Add Resources in TestCase package ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list