Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1998

Arquillian Forge Addon generate incorrect code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • None
    • Hide

      Use JBoss Forge Arquillian Addon to generate test code

      Show
      Use JBoss Forge Arquillian Addon to generate test code

      Auto-generated code generates
      @Deployment
      public static WebArchive createDeployment()

      { return ShrinkWrap .create(WebArchive.class) .addClass(Person.class) .addAsManifestResource("META-INF/persistence.xml", "persistence.xml") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml"); }

      The XML files are in the wrong place in the archive. It should be in "META-INF" folder

      @Deployment
      public static WebArchive createDeployment()

      { return ShrinkWrap.create(WebArchive.class, "test.war").addClasses(Person.class, PersonDao.class) .addAsManifestResource(EmptyAsset.INSTANCE, "META-INF/beans.xml") .addAsResource("META-INF/persistence.xml", "META-INF/persistence.xml"); }

            Unassigned Unassigned
            tonydiep_jira Tony Diep (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: