[arquillian-issues] [JBoss JIRA] Created: (ARQ-586) Arquillian should fail-fast when adding the same resource twice to an archive made with ExplodedImporter.class

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Mon Sep 12 08:06:26 EDT 2011


Arquillian should fail-fast when adding the same resource twice to an archive made with ExplodedImporter.class
--------------------------------------------------------------------------------------------------------------

                 Key: ARQ-586
                 URL: https://issues.jboss.org/browse/ARQ-586
             Project: Arquillian
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Geoffrey De Smet
            Priority: Minor


This didn't fail fast for me:
{code}
    @Deployment
    public static WebArchive createDeployment() {
        WebArchive webArchive = ShrinkWrap.create(ExplodedImporter.class, "guvnor-webapp-5.3.0-SNAPSHOT.war")
                .importDirectory(new File("target/guvnor-webapp-5.3.0-SNAPSHOT/")) // already contains WEB-INF/classes/META-INF/beans.xml
                .as(WebArchive.class)
                .addAsResource(new File("target/test-classes/META-INF/test-beans.xml"), "WEB-INF/classes/META-INF/beans.xml")
                ...
        return webArchive;
    }
{code}
Surprisingly, the second beans.xml didn't even overwrite the first one either. The second beans.xml was just ignored.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list