Package org.apache.tuscany.sca.host.corba.jee.testing.servants

Examples of org.apache.tuscany.sca.host.corba.jee.testing.servants.TestInterfaceServant


     */
    @Test
    public void test_registerServant() {
        try {
            String uri = createCorbanameURI("Nested/Test");
            TestInterface servant = new TestInterfaceServant();
            host.registerServant(uri, servant);
            TestInterface ref = TestInterfaceHelper.narrow(host.lookup(uri));
            assertEquals(2, ref.getInt(2));
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here


     */
    @Test
    public void test_unregisterServant() {
        try {
            String uri = createCorbanameURI("Unregistering/Test");
            TestInterface servant = new TestInterfaceServant();

            // creating and releasing using corbaname URI
            host.registerServant(uri, servant);
            host.unregisterServant(uri);
            host.registerServant(uri, servant);
View Full Code Here

     */
    @Test
    public void test_nameAlreadyRegistered() {
        // test using URI
        try {
            TestInterface servant = new TestInterfaceServant();
            String uri = createCorbanameURI("AlreadyRegisteredTest2");
            host.registerServant(uri, servant);
            host.registerServant(uri, servant);
            fail();
        } catch (CorbaHostException e) {
View Full Code Here

        try {
            String uri1 = createCorbanameURI("TempService1");
            String uri2 = createCorbanameURI("TempService2");
            JEECorbaHost innerHost = new JEECorbaHost();
            innerHost.start();
            TestInterfaceServant servant = new TestInterfaceServant();
            innerHost.registerServant(uri1, servant);
            innerHost.registerServant(uri2, servant);
            innerHost.stop();
            try {
                innerHost.lookup(uri1);
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.host.corba.jee.testing.servants.TestInterfaceServant

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.