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

Test class is prefixed with /WEB-INF/classes/ during packaging

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.2.6
    • impl-base
    • None
    • Hide

      Configured with Arquillian Universe 1.1.13.2

      Show
      Configured with Arquillian Universe 1.1.13.2

      Test class is prefixed with /WEB-INF/classes/ during packaging in line below:
      ArchivePath location = new BasicPath(getClassesPath(), AssetUtil.getFullPathForClassResource(clazz));
      In class ContainerBase on building deploy.
      Using org.jboss.shrinkwrap.impl.base.spec.WebArchiveImpl#getClassesPath

      at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addClasses(ContainerBase.java:1345)
      	  at org.jboss.shrinkwrap.impl.base.container.ContainerBase.addClass(ContainerBase.java:1285)
      	  at org.jboss.arquillian.container.test.impl.client.deployment.DeploymentGenerator.buildTestableDeployments(DeploymentGenerator.java:181)
      	  at org.jboss.arquillian.container.test.impl.client.deployment.DeploymentGenerator.createTestableDeployments(DeploymentGenerator.java:148)
      	  at org.jboss.arquillian.container.test.impl.client.deployment.DeploymentGenerator.generateDeployment(DeploymentGenerator.java:85)
      

      when in reality the class is in target/test-classes/, not in ${projectName}/classes/.

      Then it is not found in ClassLoaderConstructor

              Unassigned Unassigned
              artur.projekty@gmail.com Artur Polit (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: