Examples of sayHelloTo()


Examples of org.amicofragile.test.context.foobar.FooBar.sayHelloTo()

  public void usesMockedInitialContext() throws Exception {
    HelloCollector collector = new HelloCollector();
    MockedInitialContextFactory.bind("services/Hello", collector);
    System.setProperty(Context.INITIAL_CONTEXT_FACTORY, MockedInitialContextFactory.class.getName());
    FooBar fb = new FooBar();
    fb.sayHelloTo("Pietro");
   
    assertEquals("Pietro", collector.getLastTarget());
  }
}
View Full Code Here

Examples of org.jboss.ejb3.test.iiop.MySession.sayHelloTo()

      Object obj = ctx.lookup("MySessionBean/remote");
      System.err.println(obj.getClass());
      MySession session = (MySession) PortableRemoteObject.narrow(obj, MySession.class);
      assertNotNull(session);
      String me = new Date().toString();
      String response = session.sayHelloTo(me);
      assertEquals("Hi " + me, response);
   }
  
   public void test2() throws Exception
   {
View Full Code Here

Examples of org.jboss.ejb3.test.iiop.MySession.sayHelloTo()

      MarshalledObject mo = new MarshalledObject(h);
      Handle h2 = (Handle) mo.get();
      Object o = h2.getEJBObject();
      MySession session2 = (MySession) PortableRemoteObject.narrow(o, MySession.class);
      String me = new Date().toString();
      String response = session2.sayHelloTo(me);
      assertEquals("Hi " + me, response);
   }
  
   public void testGetHomeHandle() throws Exception
   {
View Full Code Here

Examples of org.jboss.ejb3.test.iiop.MySession.sayHelloTo()

      InitialContext ctx = getInitialContext();
      Object obj = ctx.lookup("HomedStatelessBean/home");
      HomedStatelessHome home = (HomedStatelessHome) PortableRemoteObject.narrow(obj, HomedStatelessHome.class);
      MySession session = home.create();
      String me = new Date().toString();
      String response = session.sayHelloTo(me);
      assertEquals("Hi " + me, response);
   }
  
   public void testIsIdentical() throws Exception
   {
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.