Package org.jacorb.test

Examples of org.jacorb.test.BasicServer


    }

    @Test
    public void testServerUsesProperGIOPVersion() throws Exception
    {
        BasicServer server = BasicServerHelper.narrow(rootPOA.servant_to_reference(new BasicServerImpl()));

        ParsedIOR ior = ((Delegate)((ObjectImpl)server)._get_delegate()).getParsedIOR();

        StringWriter out = new StringWriter();
        PrintIOR.printIOR(orb, ior, new PrintWriter(out));
View Full Code Here


    }

    @Test
    public void testCanConnectToGIOP_10_IOR() throws Exception
    {
        BasicServer server = BasicServerHelper.narrow(setup.getServerObject());
        assertTrue("Names should match ", name.getMethodName().equals (server.bounce_string(name.getMethodName())));
    }
View Full Code Here

    @Before
    public void setUp() throws Exception
    {
        BasicServerImpl servant = new BasicServerImpl();
        BasicServer tmpServer = BasicServerHelper.narrow(rootPOA.servant_to_reference(servant));

        clientORB = this.getAnotherORB(null);

        server = BasicServerHelper.narrow(clientORB.string_to_object(orb.object_to_string(tmpServer)));
    }
View Full Code Here

    @Test
    public void testInvokeSafeOperationAfterShutdown() throws Exception
    {
        clientORB.shutdown(true);
        BasicServer server2 = BasicServerHelper.narrow(server._duplicate());
        server2._release();
    }
View Full Code Here

        BasicServerImpl servant = new BasicServerImpl();

        rootPOA.activate_object(servant);

        BasicServer server = BasicServerHelper.narrow(rootPOA.servant_to_reference(servant));

        rootPOA.deactivate_object(rootPOA.servant_to_id(servant));

        System.out.println ("SERVER IOR: " + orb.object_to_string(server));
        System.out.flush();
View Full Code Here

    public void test_resolve_iiop()
    {
        org.omg.CORBA.Object obj =
            setup.getClientOrb()
                 .string_to_object("corbaloc:iiop:localhost:54321/MyImpl/MyPOA/MyObject");
        BasicServer bserver = BasicServerHelper.narrow (obj);
        bserver.ping();
    }
View Full Code Here

    public void test_resolve_shortcut_1()
    {
        org.omg.CORBA.Object obj =
            setup.getClientOrb()
                 .string_to_object("corbaloc:iiop:localhost:54321/Shortcut1");
        BasicServer bserver = BasicServerHelper.narrow (obj);
        bserver.ping();
    }
View Full Code Here

    public void test_resolve_shortcut_2()
    {
        org.omg.CORBA.Object obj =
            setup.getClientOrb()
                 .string_to_object("corbaloc:iiop:localhost:54321/Shortcut2");
        BasicServer bserver = BasicServerHelper.narrow (obj);
        bserver.ping();
    }
View Full Code Here

    }

    private ORB testORB() throws InvalidName
    {
        orb = newORB(args);
        BasicServer server = BasicServerHelper.narrow(orb.resolve_initial_references("BasicServer"));
        assertFalse(server.bounce_boolean(false));

        return orb;
    }
View Full Code Here

        args.add("corbaloc::localhost:57231");
        args.add("-ORBInitRef");
        args.add("BasicServer=" + setup.getServerIOR());

        ORB orb = testORB();
        BasicServer server = BasicServerHelper.narrow(orb.resolve_initial_references("ORBInitRefServer"));
        assertFalse(server.bounce_boolean(false));
    }
View Full Code Here

TOP

Related Classes of org.jacorb.test.BasicServer

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.