Package echo

Examples of echo.Echo


        String contribution = ContributionLocationHelper.getContributionLocation(JSONRPCReferenceTestCase.class);
        node = NodeFactory.newInstance().createNode("JSONRPCReference.composite", new Contribution("testClient", contribution));
        node.start();

        Echo echoComponent = node.getService(Echo.class,"EchoComponentWithReference");
        String result = echoComponent.echo("ABC");
        Assert.assertEquals("echo: ABC", result);
        if (node != null) {
            node.stop();
        }
    }
View Full Code Here


        String contribution = ContributionLocationHelper.getContributionLocation(JSONRPCReferenceTestCase.class);
        node = NodeFactory.newInstance().createNode("JSONRPCReference.composite", new Contribution("testClient", contribution));
        node.start();

        Echo echoComponent = node.getService(Echo.class,"EchoComponentWithReference");
        echoComponent.echoVoid();

        if (node != null) {
            node.stop();
        }
    }
View Full Code Here

        node.stop();
    }

    @Test
    public void testInvokeReference() throws Exception {
        Echo echoComponent = node.getService(Echo.class, "EchoComponentWithReference");
        String result = echoComponent.echo("ABC");
        Assert.assertEquals("echo: ABC", result);
    }
View Full Code Here

        Assert.assertEquals("echo: ABC", result);
    }

    @Test
    public void testInvokeBeanReference() throws Exception {
        Echo echoComponent = node.getService(Echo.class, "EchoComponentWithReference");
        TestBean bean = new TestBean();
        bean.setTestInt(1);
        bean.setTestString("123");
        bean.setStringArray(Arrays.asList("A", "B"));
        TestBean result = echoComponent.echoBean(bean);
        Assert.assertEquals(bean, result);
    }
View Full Code Here

        Assert.assertEquals(bean, result);
    }

    @Test
    public void testInvokeReferenceVoidOperation() throws Exception {
        Echo echoComponent = node.getService(Echo.class, "EchoComponentWithReference");
        echoComponent.echoVoid();
    }
View Full Code Here

        echoComponent.echoVoid();
    }

    @Test(expected = Exception.class)
    public void testInvokeReferenceException() throws Exception {
        Echo echoComponent = node.getService(Echo.class, "EchoComponentWithReference");
        try {
            echoComponent.echoBusinessException();
        } catch (Exception e) {
            System.err.println(e);
            throw e;
        }
    }
View Full Code Here

        }
    }

    @Test
    public void testInvokeReference20() throws Exception {
        Echo echoComponent = node.getService(Echo.class, "EchoComponentWithReference20");
        String result = echoComponent.echo("ABC");
        Assert.assertEquals("echo: ABC", result);
    }
View Full Code Here

        Assert.assertEquals("echo: ABC", result);
    }

    @Test
    public void testInvokeReferenceVoidOperation20() throws Exception {
        Echo echoComponent = node.getService(Echo.class, "EchoComponentWithReference20");
        echoComponent.echoVoid();
    }
View Full Code Here

        echoComponent.echoVoid();
    }

    @Test(expected = Exception.class)
    public void testInvokeReferenceException20() throws Exception {
        Echo echoComponent = node.getService(Echo.class, "EchoComponentWithReference20");
        try {
            echoComponent.echoBusinessException();
        } catch (Exception e) {
            System.err.println(e);
            throw e;
        }
    }
View Full Code Here

        node.stop();
    }

    @Test
    public void testInvokeReference() throws Exception {
        Echo echoComponent = node.getService(Echo.class, ECHO_COMPONENT_WITH_REFERENCE);
        String result = echoComponent.echo("ABC");
        Assert.assertEquals("echo: ABC", result);
    }
View Full Code Here

TOP

Related Classes of echo.Echo

Copyright © 2018 www.massapicom. 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.