Package org.jboss.test.managed.bean

Examples of org.jboss.test.managed.bean.Echo.echo()


   public void testManagedBeanInvocation() throws Exception
   {
      // get hold of the bean which internally invokes on the managed bean
      Echo bean = (Echo) this.getInitialContext().lookup(DelegateSLSB.JNDI_NAME);
      String message = "No new message!";
      String echoedMessage = bean.echo(message);
      Assert.assertEquals("Unexpected message returned", message, echoedMessage);
   }
}
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.