Class LifecycleCallbackInterceptorTest

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

    @SpecVersion(spec="interceptors",
                 version="1.2")
    public class LifecycleCallbackInterceptorTest
    extends AbstractTest
    • Constructor Detail

      • LifecycleCallbackInterceptorTest

        public LifecycleCallbackInterceptorTest()
    • Method Detail

      • createTestArchive

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

        @SpecAssertion(section="def_of_interceptor_classes_and_interceptor_methods",id="ab") @SpecAssertion(section="int_methods_for_lifecycle_event_callbacks",id="b")
        public void testPostConstructInterceptor()
      • testPreDestroyInterceptor

        @SpecAssertion(section="def_of_interceptor_classes_and_interceptor_methods",id="ab") @SpecAssertion(section="int_methods_for_lifecycle_event_callbacks",id="c")
        public void testPreDestroyInterceptor()
      • testSingleMethodInterposingMultipleLifecycleCallbackEvents

        @SpecAssertion(section="int_methods_for_lifecycle_event_callbacks",
                       id="f")
        public void testSingleMethodInterposingMultipleLifecycleCallbackEvents()
      • testAroundInvokeAndLifeCycleCallbackInterceptorsCanBeDefinedOnTheSameClass

        @SpecAssertion(section="def_of_interceptor_classes_and_interceptor_methods",id="ab") @SpecAssertion(section="def_of_interceptor_classes_and_interceptor_methods",id="d")
        public void testAroundInvokeAndLifeCycleCallbackInterceptorsCanBeDefinedOnTheSameClass()
      • testPublicLifecycleInterceptorMethod

        @SpecAssertion(section="int_methods_for_lifecycle_event_callbacks",
                       id="ja")
        public void testPublicLifecycleInterceptorMethod()
      • testProtectedLifecycleInterceptorMethod

        @SpecAssertion(section="int_methods_for_lifecycle_event_callbacks",
                       id="jc")
        public void testProtectedLifecycleInterceptorMethod()
      • testPrivateLifecycleInterceptorMethod

        @SpecAssertion(section="int_methods_for_lifecycle_event_callbacks",
                       id="jb")
        public void testPrivateLifecycleInterceptorMethod()
      • testPackagePrivateLifecycleInterceptorMethod

        @SpecAssertion(section="int_methods_for_lifecycle_event_callbacks",
                       id="jd")
        public void testPackagePrivateLifecycleInterceptorMethod()
      • testLifeCycleCallbackInterceptorNotInvokedForMethodLevelInterceptor

        @SpecAssertion(section="constructor_and_method_level_int",
                       id="b")
        public void testLifeCycleCallbackInterceptorNotInvokedForMethodLevelInterceptor()