Class InvocationContextTest

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

    @SpecVersion(spec="interceptors",
                 version="1.2")
    public class InvocationContextTest
    extends AbstractTest
    Tests for the InvocationContext implementation
    Author:
    Jozef Hartinger
    • Constructor Detail

      • InvocationContextTest

        public InvocationContextTest()
    • Method Detail

      • createTestArchive

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

        @SpecAssertion(section="constructor_and_method_level_int",id="aa") @SpecAssertion(section="invocationcontext",id="c")
        public void testGetTargetMethod()
      • testGetTimerMethod

        @SpecAssertion(section="invocationcontext",
                       id="db")
        public void testGetTimerMethod()
      • testGetMethodForAroundInvokeInterceptorMethod

        @SpecAssertion(section="invocationcontext",
                       id="ea")
        public void testGetMethodForAroundInvokeInterceptorMethod()
      • testGetMethodForLifecycleCallbackInterceptorMethod

        @SpecAssertion(section="invocationcontext",
                       id="eb")
        public void testGetMethodForLifecycleCallbackInterceptorMethod()
      • testCtxProceedForLifecycleCallbackInterceptorMethod

        @SpecAssertion(section="invocationcontext",
                       id="l")
        public void testCtxProceedForLifecycleCallbackInterceptorMethod()
      • testMethodParameters

        @SpecAssertion(section="invocationcontext",id="f") @SpecAssertion(section="invocationcontext",id="ga")
        public void testMethodParameters()
      • testIllegalNumberOfParameters

        @SpecAssertion(section="invocationcontext",
                       id="gb")
        public void testIllegalNumberOfParameters()
      • testIllegalTypeOfParameters

        @SpecAssertion(section="invocationcontext",
                       id="gc")
        public void testIllegalTypeOfParameters()
      • testProceedReturnsNullForVoidMethod

        @SpecAssertion(section="invocationcontext",
                       id="k")
        public void testProceedReturnsNullForVoidMethod()
      • testContextData

        @SpecAssertion(section="invocationcontext",
                       id="ba")
        public void testContextData()
      • testBusinessMethodNotCalledWithoutProceedInvocation

        @SpecAssertion(section="invocationcontext",
                       id="j")
        public void testBusinessMethodNotCalledWithoutProceedInvocation()