Package org.jacorb.test.harness

Examples of org.jacorb.test.harness.ClientServerSetup


        Properties props = new Properties();
        props.setProperty ("jacorb.poa.queue_max", "10");
        props.setProperty ("jacorb.poa.queue_min", "1");
        props.setProperty ("jacorb.poa.queue_wait", "off");

        setup = new ClientServerSetup( CallbackServerImpl.class.getName(),
                                   null,
                                   props );

    }
View Full Code Here


        Properties clientProps = new Properties();

        // this property will cause the handshake between client and server to fail!
        clientProps.setProperty("jacorb.security.ssl.client.cipher_suites", "SSL_RSA_WITH_RC4_128_MD5");

        setup = new ClientServerSetup( BasicServerImpl.class.getName(),
                clientProps,
                null);
    }
View Full Code Here

        Properties serverProps = new Properties();
        serverProps.setProperty("jacorb.poa.thread_pool_min", "1");
        serverProps.setProperty("jacorb.poa.thread_pool_max", "2");
        serverProps.setProperty("jacorb.poa.threadtimeout", "5000");

        setup = new ClientServerSetup( ServerImpl.class.getName(), null, serverProps);

    }
View Full Code Here

    @BeforeClass
    public static void beforeClassSetUp() throws Exception
    {
        final Properties serverProps = new Properties();
        serverProps.setProperty(PROP_PENDING_REPLY_TIMEOUT, "1000");
        setup = new ClientServerSetup(JAC235Impl.class.getName(), serverProps, serverProps);
    }
View Full Code Here

    }

    @BeforeClass
    public static void beforeClassSetUp() throws Exception
    {
        setup = new ClientServerSetup(JAC235Impl.class.getName());

    }
View Full Code Here

    }

    @BeforeClass
    public static void beforeClassSetUp() throws Exception
    {
        setup = new ClientServerSetup("org.jacorb.test.bugs.bug387.TestInterfaceImpl");
    }
View Full Code Here

        client_props.setProperty ("org.omg.PortableInterceptor.ORBInitializerClass.bidir_init", "org.jacorb.orb.giop.BiDirConnectionInitializer");
        server_props.setProperty ("org.omg.PortableInterceptor.ORBInitializerClass.bidir_init", "org.jacorb.orb.giop.BiDirConnectionInitializer");

        // Note that I have activated BiDir connections through the above
        // property and am using my own ClientServerSetup class.
        setup = new ClientServerSetup("org.jacorb.test.poa.BiDirDelegateTestServerRunner",
                                   "org.jacorb.test.orb.BasicServerImpl",
                                   client_props,
                                   server_props);
    }
View Full Code Here

        serverProps.setProperty("OAPort", Integer.toString(port));
        serverProps.setProperty("jacorb.implname", "myimpl");
        serverProps.setProperty("org.omg.PortableInterceptor.ORBInitializerClass."
                + "ORBInit", Initializer.class.getName());

        setup = new ClientServerSetup(Bug983Test.class.getName(),
                "org.jacorb.test.bugs.bug983.HelloImpl",
                new String[] { "-ORBListenEndpoints", "'iiop://:" + port + ",iiop://:" +
                getNextAvailablePort() + "'"},
                null,
                serverProps);
View Full Code Here

        reference.sayGoodbye();

        TestUtils.getLogger().debug("waiting for reactivation...");

        setup.tearDown();
        setup = new ClientServerSetup(Bug983Test.class.getName(),
                "org.jacorb.test.bugs.bug983.HelloImpl", null, serverProps);

        try
        {
            reference.sayHello();
            reference.sayGoodbye();
            TestUtils.getLogger().debug("Worked fine!");
        }
        catch (Exception e)
        {
            TestUtils.getLogger().debug("Failed to call server", e);
            fail("Failed to call restarted server" + e);
        }

        setup.tearDown();

        try
        {
            reference.sayHello();

            fail ("Should have been down");
        }
        catch (Exception e)
        {
            TestUtils.getLogger().debug("Ok, it was down", e);
        }

        TestUtils.getLogger().debug("waiting for reactivation...");

        setup = new ClientServerSetup(Bug983Test.class.getName(),
                "org.jacorb.test.bugs.bug983.HelloImpl", null, serverProps);

        try
        {
            reference.sayHello();
View Full Code Here

    private TestBoundedString testObj = null;

    @BeforeClass
    public static void beforeClassSetUp() throws Exception
    {
        setup = new ClientServerSetup("org.jacorb.test.bugs.bugjac676.TestBoundedStringImpl" );
    }
View Full Code Here

TOP

Related Classes of org.jacorb.test.harness.ClientServerSetup

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.