[forge-issues] [JBoss JIRA] (FORGE-118) When Creating an Arquillian test and the class file select requires any web-only features the Test.java class should create a WebArchive rather than a JavaArchive.
Lincoln Baxter III (Assigned) (JIRA)
jira-events at lists.jboss.org
Fri Oct 21 16:57:45 EDT 2011
[ https://issues.jboss.org/browse/FORGE-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lincoln Baxter III reassigned FORGE-118:
----------------------------------------
Assignee: Paul Bakker
> When Creating an Arquillian test and the class file select requires any web-only features the Test.java class should create a WebArchive rather than a JavaArchive.
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-118
> URL: https://issues.jboss.org/browse/FORGE-118
> Project: Forge
> Issue Type: Enhancement
> Components: JBoss Tools Integration, Plugin Repository
> Affects Versions: 1.0.0.Beta3
> Environment: Any environment
> Reporter: Craig Schwarzwald
> Assignee: Paul Bakker
>
> End result of the created arquillian test class should have Deployment method as follows:
> @Deployment public static WebArchive createDeployment() {
> return ShrinkWrap.create(WebArchive.class, "test.war")
> .addPackage(<ClassBeingTested>.class.getPackage()) //To ensure all necessary classes are added
> .addAsResource("META-INF/persistence.xml") //If this file exists
> .addAsWebResource(new StringAsset("<beans/>"), ArchivePaths.create("WEB-INF/beans.xml"));
> }
> Currently when running:
> arquillian create-test --class MyClass.java
> An Arquillian test is created, but as a JavaArchive which is not correct.
--
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 forge-issues
mailing list