Skip to content

Commit

Permalink
Workaround for AS7-1197
Browse files Browse the repository at this point in the history
  • Loading branch information
jharting committed Nov 10, 2011
1 parent 33ed039 commit 343296d
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 30 deletions.
Expand Up @@ -6,14 +6,14 @@
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.jboss.weld.exceptions.DeploymentException;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(Arquillian.class)
public class DependentCircularInjectionTest {
@Deployment
@ShouldThrowException(DeploymentException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
public static JavaArchive createDeployment() {
return ShrinkWrap.create(BeanArchive.class)
.addClasses(Fish.class, Water.class);
Expand Down
Expand Up @@ -6,14 +6,14 @@
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.jboss.weld.exceptions.DeploymentException;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(Arquillian.class)
public class DependentSelfInjectionProducerTest {
@Deployment
@ShouldThrowException(DeploymentException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
public static JavaArchive createDeployment() {
return ShrinkWrap.create(BeanArchive.class)
.addClasses(DependentLooping.class, DependentLoopingProducer.class);
Expand Down
Expand Up @@ -6,14 +6,14 @@
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.jboss.weld.exceptions.DeploymentException;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(Arquillian.class)
public class DependentSelfInjectionTest {
@Deployment
@ShouldThrowException(DeploymentException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
public static JavaArchive createDeployment() {
return ShrinkWrap.create(BeanArchive.class)
.addClasses(Farm.class);
Expand Down
Expand Up @@ -28,7 +28,6 @@
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.jboss.weld.exceptions.DeploymentException;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -39,7 +38,8 @@
@RunWith(Arquillian.class)
public class ObserverMethodParameterInjectionValidationTest {
@Deployment
@ShouldThrowException(DeploymentException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
public static JavaArchive getDeployment() {
return ShrinkWrap.create(JavaArchive.class, "test.jar")
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")
Expand Down
Expand Up @@ -22,7 +22,6 @@
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.weld.exceptions.DefinitionException;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand All @@ -41,7 +40,8 @@
@Ignore
public class NoArgInterceptorInvalidContractTest {

@ShouldThrowException(DefinitionException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create(BeanArchive.class)
Expand Down
Expand Up @@ -22,7 +22,6 @@
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.weld.exceptions.DefinitionException;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand All @@ -41,7 +40,8 @@
@Ignore
public class NotThrowingExceptionInterceptorInvalidContractTest {

@ShouldThrowException(DefinitionException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create(BeanArchive.class)
Expand Down
Expand Up @@ -22,7 +22,6 @@
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.weld.exceptions.DefinitionException;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand All @@ -41,7 +40,8 @@
@Ignore
public class VoidInterceptorInvalidContractTest {

@ShouldThrowException(DefinitionException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create(BeanArchive.class)
Expand Down
Expand Up @@ -23,7 +23,6 @@
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.weld.exceptions.DefinitionException;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -33,7 +32,8 @@
@RunWith(Arquillian.class)
public class InterceptorWithNonSerializableFieldOnPassivatingBean {

@ShouldThrowException(DefinitionException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create(BeanArchive.class)
Expand Down
Expand Up @@ -23,7 +23,6 @@
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.weld.exceptions.DefinitionException;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -33,7 +32,8 @@
@RunWith(Arquillian.class)
public class NonPassivatingInterceptorOnPassivatingBean {

@ShouldThrowException(DefinitionException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create(BeanArchive.class)
Expand Down
Expand Up @@ -22,15 +22,15 @@
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.weld.exceptions.DefinitionException;
import org.junit.Test;
import org.junit.runner.RunWith;


@RunWith(Arquillian.class)
public class FinalClassClassLevelInterceptorTest {

@ShouldThrowException(DefinitionException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create(BeanArchive.class)
Expand Down
Expand Up @@ -22,7 +22,6 @@
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.weld.exceptions.DefinitionException;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -31,7 +30,8 @@
//@IntegrationTest(runLocally = true)
public class FinalClassMethodLevelInterceptorTest {

@ShouldThrowException(DefinitionException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create(BeanArchive.class)
Expand Down
Expand Up @@ -22,15 +22,15 @@
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.weld.exceptions.DefinitionException;
import org.junit.Test;
import org.junit.runner.RunWith;


@RunWith(Arquillian.class)
public class FinalMethodClassLevelInterceptorTest {

@ShouldThrowException(DefinitionException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create(BeanArchive.class)
Expand Down
Expand Up @@ -22,15 +22,15 @@
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.BeanArchive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.weld.exceptions.DefinitionException;
import org.junit.Test;
import org.junit.runner.RunWith;


@RunWith(Arquillian.class)
public class FinalMethodMethodLevelInterceptorTest {

@ShouldThrowException(DefinitionException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create(BeanArchive.class)
Expand Down
Expand Up @@ -17,7 +17,8 @@
public class NonDependentResourceProducerFieldTest {

@Deployment
@ShouldThrowException(DefinitionException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
public static JavaArchive deploy() {
return ShrinkWrap.create(BeanArchive.class)
.addPackage(NonDependentResourceProducerFieldTest.class.getPackage());
Expand Down
Expand Up @@ -25,13 +25,12 @@
import org.junit.Test;
import org.junit.runner.RunWith;

import javax.enterprise.inject.UnproxyableResolutionException;

@RunWith(Arquillian.class)
public class UnproxyableTest {

@Deployment
@ShouldThrowException(UnproxyableResolutionException.class)
// @ShouldThrowException(DefinitionException.class)
@ShouldThrowException(Exception.class) // AS7-1197
public static JavaArchive deploy() {
BeanArchive archive = ShrinkWrap.create(BeanArchive.class);
archive.addPackage(UnproxyableTest.class.getPackage());
Expand Down

0 comments on commit 343296d

Please sign in to comment.