Examples of Helloworld


Examples of org.apache.myfaces.view.facelets.bean.HelloWorld

    }
   
    @Test
    public void testSimpleInsertChildrenNoAjax() throws Exception
    {
        HelloWorld helloWorld = new HelloWorld();
       
        facesContext.getExternalContext().getRequestMap().put("helloWorldBean",
                helloWorld);
       
        UIViewRoot root = facesContext.getViewRoot();
View Full Code Here

Examples of org.apache.myfaces.view.facelets.bean.HelloWorld

    }
   
    @Test
    public void testCompositeInsertChildren() throws Exception
    {
        HelloWorld helloWorld = new HelloWorld();
       
        facesContext.getExternalContext().getRequestMap().put("helloWorldBean",
                helloWorld);
       
        UIViewRoot root = facesContext.getViewRoot();
View Full Code Here

Examples of org.apache.servicemix.examples.cxf.HelloWorld

            String endpointAddress = "http://localhost:9191/HelloWorld";

            // Add a port to the Service
            service.addPort(PORT_NAME, SOAPBinding.SOAP11HTTP_BINDING, endpointAddress);
            HelloWorld hw = service.getPort(HelloWorld.class);
           
            String[] names = new String[] {"Anne", "Bill", "Chris", "Daisy"};
            // make a sequence of 4 invocations
            for (int i = 0; i < 4; i++) {
                System.out.println("Calling HelloWorld service");
                System.out.println(hw.sayHi(names[i]));
            }

            // allow aynchronous resends to occur
            Thread.sleep(60 * 1000);
            bus.shutdown(true);
View Full Code Here

Examples of org.apache.tuscany.sca.binding.ws.axis2.itests.HelloWorld

public class HelloWorldSOAP12TestCaseOFF extends TestCase {

    private Node node;

    public void testHelloWorld() throws Exception {
        HelloWorld helloWorld = node.getService(HelloWorld.class, "HelloWorldClient");
        assertEquals("Hello petra", helloWorld.getGreetings("petra"));
    }
View Full Code Here

Examples of org.apache.tuscany.sca.policy.matching.helloworld.HelloWorld

        }
    }
   
    @Test
    public void testMutuallyExclusiveIntents() throws Exception {
        HelloWorld helloWorld = node.getService(HelloWorld.class, "HelloWorldClientMutuallyExclusiveIntents");
        try {
            helloWorld.getGreetings("petra");
            fail("Exception expected");
        } catch (Exception ex) {
            assertTrue(ex.getMessage().indexOf("No match because the following intents are mutually exclusive {http://tuscany.apache.org/xmlns/sca/1.1}testIntent3 {http://tuscany.apache.org/xmlns/sca/1.1}testIntent1") > -1);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.test.performance.client.Helloworld

        runtime = null;
    }
   
    public void callService() {
        try {
            Helloworld helloWorldClient = node.getService(Helloworld.class, "HelloWorldClientComponent");
           
            assertNotNull(helloWorldClient)
           
            BeanA beanA = new BeanA();
            beanA.setField1("Smith");
            beanA.setField2(13);
           
            assertEquals("Hello Hello Jane Smith", helloWorldClient.sayHello("Jane", beanA));
        } catch (Exception ex) {
            fail(ex.toString());
        }
    }
View Full Code Here

Examples of org.jboss.embedded.test.vfs.HelloWorld

      AssembledDirectory jar = AssembledContextFactory.getInstance().create("vfs-test.jar");
      jar.addClass(HelloWorld.class);
      jar.addClass(HelloWorldBean.class);

      Bootstrap.getInstance().deploy(jar);
      HelloWorld hello = (HelloWorld)new InitialContext().lookup("HelloWorldBean/local");
      hello.hello();
      Bootstrap.getInstance().undeploy(jar);
   }
View Full Code Here

Examples of org.jboss.tutorial.stateless.bean.HelloWorld

     String results = new String();
     String contents = new String((String)msgBody.get());
     try {
         InitialContext ctx = new InitialContext();
              
         HelloWorld client = (HelloWorld) ctx.lookup("HelloWorldBean/remote");
         results = client.sayHello(contents);
         System.out.println("Invoked EJB3: " + results);
     } catch (Exception e) {
     e.printStackTrace();
         System.out.println(e);
     }
View Full Code Here

Examples of sample.HelloWorld

    @Test
    public void testSayHello() {
        NodeFactory nf = NodeFactory.newInstance();
        Node node = nf.createNode((String)null, new String[] {"target/classes"}).start();
        HelloWorld hw = node.getService(HelloWorld.class, "HelloWorld");
        assertEquals("Hello There", hw.sayHello("There"));
      node.stop();
    }
View Full Code Here

Examples of sample.Helloworld

    @Test
    public void testInstallDeployable() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException {
        Node node = TuscanyRuntime.newInstance().createNode("default");
        node.installContribution("helloworld", "src/test/resources/sample-helloworld.jar", null, null, true);

        Helloworld helloworldService = node.getService(Helloworld.class, "HelloworldComponent");
        Assert.assertEquals("Hello petra", helloworldService.sayHello("petra"));
    }
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.