Examples of sayHi()


Examples of org.jboss.ejb3.test.proxy.impl.common.ejb.slsb.MyStatelessLocal.sayHi()

      String name = "ejbthree1886";
      String expectedMessage = "Hi " + name;
      MyStatelessLocal localBean = (MyStatelessLocal) obj;

      String message = localBean.sayHi(name);
      Assert.assertEquals("Unexpected greeting message: " + message + " from local stateless bean", message,
            expectedMessage);

      // now lookup remote and invoke on it
      String remoteJNDIName = smd.getJndiName();
View Full Code Here

Examples of org.jboss.ejb3.test.proxy.impl.common.ejb.slsb.MyStatelessRemote.sayHi()

      Object bean = RemoteAccessTestCase.getContext().lookup(JNDI_NAME_SLSB_REMOTE);
      assertTrue("Bean was not of expected type " + MyStatelessRemote.class.getName() + " but was instead " + bean,
            bean instanceof MyStatelessRemote);

      MyStatelessRemote slsb = ((MyStatelessRemote) bean);
      String result = slsb.sayHi("testRemote");
      String expected = "Hi testRemote";
      assertEquals("Result was not expected", expected, result);
      result = slsb.sayHi("testRemote");
      expected = "Hi testRemote";
      assertEquals("Result was not expected", expected, result);
View Full Code Here

Examples of org.jboss.ejb3.test.tx.common.Greeter.sayHi()

   @Test
   public void test1() throws Throwable
   {
      Greeter bean = container.constructProxy(Greeter.class);
     
      bean.sayHi("me");
     
      assertEquals("disallowed", AfterCompletionTestBean.result);
   }
}
View Full Code Here

Examples of org.jboss.ejb3.tx.test.sessionsynchronization.SessionSyncTest.sayHi()

   {
      SessionSyncTest bean = container.constructProxy(SessionSyncTest.class);
     
      try
      {
         bean.sayHi("me");
         fail("Should have thrown an EJBTransactionRolledbackException");
      }
      catch(EJBTransactionRolledbackException e)
      {
         // whoopie
View Full Code Here

Examples of org.jboss.resteasy.tests.encoding.sample.HelloClient.sayHi()

   @Test
   public void testEcho()
   {
      RegisterBuiltin.register(ResteasyProviderFactory.getInstance());
      HelloClient client = ProxyFactory.create(HelloClient.class, "http://localhost:9095");
      Assert.assertEquals(SPACES_REQUEST, client.sayHi(SPACES_REQUEST));

      Assert.assertEquals(QUERY, client.compile(QUERY));
   }

   @Test
View Full Code Here

Examples of org.jboss.resteasy.tests.typevar.sample.HelloString.sayHi()

     public void testEcho()
     {
       ResteasyClient client = new ResteasyClientBuilder().build();
       ResteasyWebTarget target = client.target("http://localhost:9095");
       HelloString proxy = target.proxy(HelloString.class);
       String hello = proxy.sayHi("hello");
       Assert.assertEquals("hello", hello);
     }

    
}
View Full Code Here

Examples of org.objectweb.celtix.hello_world_jms.HelloWorldPortType.sayHi()

                String greeting = greeter.greetMe("Milestone-" + idx);
                assertNotNull("no response received from service", greeting);
                String exResponse = response1 + idx;
                assertEquals(exResponse, greeting);

                String reply = greeter.sayHi();
                assertNotNull("no response received from service", reply);
                assertEquals(response2, reply);
            }
        } catch (UndeclaredThrowableException ex) {
            throw (Exception)ex.getCause();
View Full Code Here

Examples of org.objectweb.celtix.jms_greeter.JMSGreeterPortType.sayHi()

        JMSGreeterService service = new JMSGreeterService(wsdl.toURL(), SERVICE_NAME);
        JMSGreeterPortType greeter = (JMSGreeterPortType)service.getPort(PORT_NAME, JMSGreeterPortType.class);

        System.out.println("Invoking sayHi...");
        System.out.println("server responded with: " + greeter.sayHi());
        System.out.println();

        System.out.println("Invoking greetMe...");
        System.out.println("server responded with: " + greeter.greetMe(System.getProperty("user.name")));
        System.out.println();
View Full Code Here

Examples of org.objectweb.hello_world_doc_lit_bare.PutLastTradedPricePortType.sayHi()

        priceData.setTickerSymbol("CELTIX");

        Holder<TradePriceData> holder = new Holder<TradePriceData>(priceData);

        for (int i = 0; i < 5; i++) {
            putLastTradedPrice.sayHi(holder);
            assertEquals(4.5f, holder.value.getTickerPrice());
            assertEquals("OBJECTWEB", holder.value.getTickerSymbol());
            putLastTradedPrice.putLastTradedPrice(priceData);
        }
View Full Code Here

Examples of org.objectweb.hello_world_rpclit.GreeterRPCLit.sayHi()

       
        SOAPServiceRPCLit service = new SOAPServiceRPCLit(wsdlURL, SERVICE_NAME);
        GreeterRPCLit greeter = (GreeterRPCLit)service.getPort(PORT_NAME, GreeterRPCLit.class);

        System.out.println("Invoking sayHi...");
        System.out.println("server responded with: " + greeter.sayHi());
        System.out.println();

        System.out.println("Invoking greetMe...");
        System.out.println("server responded with: " + greeter.greetMe(System.getProperty("user.name")));
        System.out.println();
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.