Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Deployment
- public static Archive<?> createTestArchive(WebArchive war, ContainerConfiguration config)
- {
- war.addPackage(Game.class.getPackage())
- .addWebResource(new ByteArrayAsset(new byte[0]), "beans.xml");
- if (config instanceof GlassFishConfiguration) {
- war.addWebResource("glassfish-persistence.xml", "classes/META-INF/persistence.xml");
- }
- else if (config instanceof JBossASConfiguration) {
- war.addWebResource("jbossas-persistence.xml", "classes/META-INF/persistence.xml");
- }
- return war;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement