Examples of EchoLocalBusiness


Examples of org.jboss.arquillian.container.openejb.embedded_3_1.ejb.EchoLocalBusiness

      // Get a naming context and log in
      final Context context = arquillianContext.get(Context.class, props);

      // Look up the EJB and request upon a secured action
      final EchoLocalBusiness bean = (EchoLocalBusiness) context.lookup(JNDI_NAME);
      final String expected = "Secured Action";
      final String received = bean.securedEcho(expected);
      Assert.assertSame("Should have been able to invoke upon a secured action using context lookup with props",
            expected, received);

      // Log out
      context.close();
View Full Code Here

Examples of org.jboss.arquillian.container.openejb.embedded_3_1.ejb.EchoLocalBusiness

    */
   @Test
   public void authenticatedInvocation() throws NamingException
   {
      // Look up the EJB though the authenticated Context
      final EchoLocalBusiness bean = (EchoLocalBusiness) namingContext.lookup(JNDI_NAME);

      // Invoke and test
      final String expected = "Authenticated Invocation";
      final String actual;
      try
      {
         actual = bean.securedEcho(expected);
      }
      catch (final EJBAccessException e)
      {
         Assert.fail("Should have been able to access secured method via authenticated JNDI Context, but got: " + e);
         return;
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.