@@ -0,0 +1,970 @@
+package org.gluu.oxtrust.util;%0D%0A%0D%0Aimport org.jboss.shrinkwrap.api.ShrinkWrap;%0D%0Aimport org.jboss.shrinkwrap.api.asset.EmptyAsset;%0D%0Aimport org.jboss.shrinkwrap.api.spec.WebArchive;%0D%0A%0D%0A/**%0D%0A * Creates a deployment from a build Web Archive using ShrinkWrap ZipImporter%0D%0A * %0D%0A * @author Yuriy Movchan%0D%0A */%0D%0Apublic class Deployments %7B%0D%0A%0D%0A%09public static WebArchive createDeployment() %7B%0D%0A%09%09final WebArchive war = ShrinkWrap.create(WebArchive.class, %22oxtrust.war%22)%0D%0A%09%09%09%09// adding the configuration class silences the logged exception%0D%0A%09%09%09%09// when building the configuration on the server-side, but%0D%0A%09%09%09%09// shouldn't be necessary%0D%0A%09%09%09%09// .addClass(JettyEmbeddedConfiguration.class)%0D%0A%09%09%09%09// Resteasy services%0D%0A%09%09%09%09// .addClass(ResteasyInitializer.class)%0D%0A%09%09%09%09// .addPackage(GluuConfigurationWS.class.getPackage())%0D%0A%09%09%09%09// Servlets%0D%0A%09%09%09%09.addAsWebInfResource(%22jetty-env.xml%22).addAsWebInfResource(EmptyAsset.INSTANCE, %22beans.xml%22)%0D%0A%09%09%09%09.setWebXML(%22web.xml%22);%0D%0A%09%09return war;%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Add test deployment descriptor