Skip to content

Commit

Permalink
Fix test deployment in ApplicationContextInitializedEventFiredWithNoW…
Browse files Browse the repository at this point in the history
…ebArchiveTest.
  • Loading branch information
manovotn committed Aug 22, 2017
1 parent 1fba586 commit 23e9e73
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -37,6 +37,7 @@

/**
* Testcase for WFLY-3334, WELD-2401
*
* @author Matej Novotny
*
*/
Expand All @@ -46,8 +47,8 @@ public class ApplicationContextInitializedEventFiredWithNoWebArchiveTest {

@Deployment
public static Archive<?> getDeployment() {
JavaArchive lib = ShrinkWrap.create(JavaArchive.class).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml").addClasses(Library.class, ApplicationContextInitializedEventFiredWithNoWebArchiveTest.class);
JavaArchive ejb = Testable.archiveToTest(ShrinkWrap.create(JavaArchive.class).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml").addClass(SessionBean.class));
JavaArchive lib = ShrinkWrap.create(JavaArchive.class).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml").addClass(Library.class);
JavaArchive ejb = Testable.archiveToTest(ShrinkWrap.create(JavaArchive.class).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml").addClasses(SessionBean.class, ApplicationContextInitializedEventFiredWithNoWebArchiveTest.class));
return ShrinkWrap.create(EnterpriseArchive.class).addAsModule(ejb).addAsLibrary(lib);
}

Expand Down

0 comments on commit 23e9e73

Please sign in to comment.