package org.jboss.cdi.tck.tests.lookup.clientProxy.unproxyable.interceptor; import static org.jboss.cdi.tck.cdi.Sections.UNPROXYABLE; import javax.enterprise.inject.spi.DeploymentException; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.container.test.api.ShouldThrowException; import org.jboss.cdi.tck.AbstractTest; import org.jboss.cdi.tck.shrinkwrap.WebArchiveBuilder; import org.jboss.shrinkwrap.api.spec.WebArchive; import org.jboss.shrinkwrap.descriptor.api.Descriptors; import org.jboss.shrinkwrap.descriptor.api.beans11.BeansDescriptor; import org.jboss.test.audit.annotations.SpecAssertion; import org.jboss.test.audit.annotations.SpecAssertions; import org.jboss.test.audit.annotations.SpecVersion; import org.testng.annotations.Test; @SpecVersion(spec = "cdi", version = "2.0-PFD") public class InterceptedBeanProxyTest extends AbstractTest { @Deployment @ShouldThrowException(DeploymentException.class) public static WebArchive createTestArchive() { return new WebArchiveBuilder() .withTestClassPackage(InterceptedBeanProxyTest.class) .withBeansXml( Descriptors.create(BeansDescriptor.class) .getOrCreateInterceptors() .clazz(FishInterceptor.class.getName()).up()) .build(); } @Test @SpecAssertions({ @SpecAssertion(section = UNPROXYABLE, id = "eb") }) public void testClientProxyBeanWithBoundInterceptor() { } }