Examples of TestClientInterceptorStack


Examples of org.jboss.ejb3.test.proxy.impl.ejbthree1517.TestClientInterceptorStack

    */
   @Test
   public void testSlsbClientInterceptorStackOverride() throws Exception
   {
      // Lookup the proxies
      TestClientInterceptorStack normal = (TestClientInterceptorStack) context
            .lookup(TestClientInterceptorStack.JNDI_BINDING_NORMAL_STACK_SLSB);
      TestClientInterceptorStack overridden = (TestClientInterceptorStack) context
            .lookup(TestClientInterceptorStack.JNDI_BINDING_OVERRIDDEN_STACK_SLSB);

      // Invoke upon the standard
      String returnValueStandard = normal.getValue();
      TestCase.assertEquals(TestClientInterceptorStack.DEFAULT_RETURN_VALUE, returnValueStandard);
      log.info("Got expected result from SLSB Standard Binding: " + returnValueStandard);

      // Invoke upon the overridden
      String returnValueOverridden = overridden.getValue();
      TestCase.assertEquals(ReturnStaticValueInterceptor.RETURN_VALUE, returnValueOverridden);
      log.info("Got expected result from SLSB Overridden Binding: " + returnValueOverridden);
   }
View Full Code Here

Examples of org.jboss.ejb3.test.proxy.impl.ejbthree1517.TestClientInterceptorStack

    */
   @Test
   public void testSfsbClientInterceptorStackOverride() throws Exception
   {
      // Lookup the proxies
      TestClientInterceptorStack normal = (TestClientInterceptorStack) context
            .lookup(TestClientInterceptorStack.JNDI_BINDING_NORMAL_STACK_SFSB);
      TestClientInterceptorStack overridden = (TestClientInterceptorStack) context
            .lookup(TestClientInterceptorStack.JNDI_BINDING_OVERRIDDEN_STACK_SFSB);

      // Invoke upon the standard
      String returnValueStandard = normal.getValue();
      TestCase.assertEquals(TestClientInterceptorStack.DEFAULT_RETURN_VALUE, returnValueStandard);
      log.info("Got expected result from SFSB Standard Binding: " + returnValueStandard);

      // Invoke upon the overridden
      String returnValueOverridden = overridden.getValue();
      TestCase.assertEquals(ReturnStaticValueInterceptor.RETURN_VALUE, returnValueOverridden);
      log.info("Got expected result from SFSB Overridden Binding: " + returnValueOverridden);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.