Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-329

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 1.1.0-alpha-1
    • None
    • None
    • None

    Description

      This didn't fail fast for me:

          @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;
          }
      

      Surprisingly, the second beans.xml didn't even overwrite the first one either. The second beans.xml was just ignored.

      Attachments

        Issue Links

          Activity

            People

              arubinge@redhat.com Andrew Rubinger (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: