[
https://jira.jboss.org/jira/browse/ARQ-30?page=com.atlassian.jira.plugin....
]
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