package org.jboss.weld.tests.ejb;

import javax.ejb.Stateless;
import javax.inject.Inject;

import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.ArchivePaths;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(Arquillian.class)
public class EJBCallTest {
	@Deployment
	public static JavaArchive createTestArchive() {
		return ShrinkWrap
				.create(JavaArchive.class, "test.jar")
				.addAsManifestResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
	}

	@Stateless
	public static class SomeService {
		public String someMethod() {
			return "test";
		}
	}

	@Inject
	SomeService someService;

	@Test
	public void testStatelessCall() {
		Assert.assertEquals("test", someService.someMethod());
	}
}

@@ -405,16 +405,41 @@
 Assert;%0A
+import org.junit.Ignore;%0A
 import o
@@ -900,16 +900,38 @@
 %0A%09@Test%0A
+%09@Ignore(%22WELD-1086%22)%0A
 %09public 

Exclude the test for WELD-1086 temporarily