Class InterceptorDefinitionTest

  • All Implemented Interfaces:
    org.testng.IHookable, org.testng.ITestNGListener

    @SpecVersion(spec="cdi",
                 version="2.0")
    public class InterceptorDefinitionTest
    extends AbstractTest
    Tests related to the definition of interceptors, but not necessarily their execution.
    Author:
    David Allen, Marius Bogoevici, Martin Kouba
    • Constructor Detail

      • InterceptorDefinitionTest

        public InterceptorDefinitionTest()
    • Method Detail

      • createTestArchive

        @Deployment
        public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
      • testInterceptorsImplementInterceptorInterface

        @SpecAssertions(@SpecAssertion(section="interceptor",id="a"))
        public void testInterceptorsImplementInterceptorInterface()
      • testInterceptorBindingTypes

        @SpecAssertions(@SpecAssertion(section="interceptor",id="b"))
        public void testInterceptorBindingTypes()
      • testInterceptionType

        @SpecAssertion(section="interceptor",id="c") @SpecAssertion(section="interceptor",id="e") @SpecAssertion(section="interceptor_ee",id="a")
        public void testInterceptionType()
      • testInstanceOfInterceptorForEveryEnabledInterceptor

        @SpecAssertion(section="interceptor",
                       id="f")
        public void testInstanceOfInterceptorForEveryEnabledInterceptor()
      • testResolveInterceptorsReturnsOrderedList

        @SpecAssertions(@SpecAssertion(section="bm_interceptor_resolution",id="a"))
        public void testResolveInterceptorsReturnsOrderedList()
      • testSameBindingTypesToResolveInterceptorsFails

        @SpecAssertions(@SpecAssertion(section="bm_interceptor_resolution",id="b"))
        public void testSameBindingTypesToResolveInterceptorsFails()
      • testNoBindingTypesToResolveInterceptorsFails

        @SpecAssertions(@SpecAssertion(section="bm_interceptor_resolution",id="c"))
        public void testNoBindingTypesToResolveInterceptorsFails()
      • testNonBindingTypeToResolveInterceptorsFails

        @SpecAssertions(@SpecAssertion(section="bm_interceptor_resolution",id="d"))
        public void testNonBindingTypeToResolveInterceptorsFails()
      • testInterceptorBindingAnnotation

        @SpecAssertions(@SpecAssertion(section="binding_interceptor_to_bean",id="a"))
        public void testInterceptorBindingAnnotation()
      • testStereotypeInterceptorBindings

        @SpecAssertion(section="stereotype_interceptor_bindings",id="a") @SpecAssertion(section="stereotype_interceptor_bindings",id="b") @SpecAssertion(section="specify_stereotype_interceptor_bindings",id="b")
        public void testStereotypeInterceptorBindings()
      • testInterceptorBindingsCanDeclareOtherInterceptorBindings

        @SpecAssertions(@SpecAssertion(section="binding_interceptor_to_bean",id="a"))
        public void testInterceptorBindingsCanDeclareOtherInterceptorBindings()