Skip to content

Commit

Permalink
Rest of tests to use beans.xml over empty beans.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Channyboy committed Sep 23, 2022
1 parent 344ec10 commit 430d028
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Expand Up @@ -48,7 +48,6 @@
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.junit.InSequence;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.Assert;
import org.junit.Assume;
Expand Down Expand Up @@ -117,7 +116,7 @@ static public void setup() throws MalformedURLException {

@Deployment
public static WebArchive createDeployment() {
WebArchive jar = ShrinkWrap.create(WebArchive.class).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
WebArchive jar = ShrinkWrap.create(WebArchive.class).addAsWebInfResource("META-INF/beans.xml", "beans.xml");

System.out.println(jar.toString(true));
return jar;
Expand Down
Expand Up @@ -37,7 +37,6 @@
import org.jboss.arquillian.junit.InSequence;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.BeforeClass;
import org.junit.Test;
Expand Down Expand Up @@ -172,7 +171,7 @@ public static WebArchive createDeployment() {
WebArchive jar = ShrinkWrap.create(WebArchive.class, "optionalTCK.war")
.addPackage(MetricAppBeanOptional.class.getPackage())
.addClasses(MetricsRESTActivator.class, MetricAppBeanOptional.class, NameObject.class)
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
.addAsWebInfResource("META-INF/beans.xml", "beans.xml");

System.out.println(jar.toString(true));
return jar;
Expand Down
Expand Up @@ -35,7 +35,6 @@
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.junit.InSequence;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.BeforeClass;
import org.junit.Test;
Expand Down Expand Up @@ -108,7 +107,7 @@ static public void setup() throws MalformedURLException {
@Deployment
public static WebArchive createDeployment() {
WebArchive jar = ShrinkWrap.create(WebArchive.class).addClass(MetricAppBean.class)
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
.addAsWebInfResource("META-INF/beans.xml", "beans.xml");

System.out.println(jar.toString(true));
return jar;
Expand Down
Expand Up @@ -35,7 +35,6 @@
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.junit.InSequence;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.BeforeClass;
import org.junit.Test;
Expand Down Expand Up @@ -101,7 +100,7 @@ static public void setup() throws MalformedURLException {
@Deployment
public static WebArchive createDeployment() {
WebArchive jar = ShrinkWrap.create(WebArchive.class).addClass(MetricAppBean2.class)
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
.addAsWebInfResource("META-INF/beans.xml", "beans.xml");

return jar;
}
Expand Down

0 comments on commit 430d028

Please sign in to comment.