Search in sources :

Example 1 with SimpleObjectImpl

use of com.hp.mwtests.orbportability.orbspecific.orbinstance.SimpleObjectImpl in project narayana by jbosstm.

the class ServiceTestSetup method test.

@Test
public void test() throws Exception {
    /**
     * Create ORB and OA *
     */
    ORB testORB = ORB.getInstance(ORB_INSTANCE_NAME);
    OA testOA = OA.getRootOA(testORB);
    /**
     * Initialise ORB and OA *
     */
    testORB.initORB(new String[] {}, null);
    testOA.initPOA(new String[] {});
    /**
     * Create services object *
     */
    Services testServ = new Services(testORB);
    String[] params = new String[1];
    params[0] = com.arjuna.orbportability.Services.otsKind;
    SimpleObjectImpl servant = new com.hp.mwtests.orbportability.orbspecific.orbinstance.SimpleObjectImpl();
    testOA.objectIsReady(servant);
    /*
			 * Register using the default mechanism.
			 */
    testServ.registerService(com.hp.mwtests.orbportability.orbspecific.orbtests.SimpleObjectHelper.narrow(testOA.corbaReference(servant)), TEST_SERVICE_NAME, params, Services.CONFIGURATION_FILE);
}
Also used : Services(com.arjuna.orbportability.Services) OA(com.arjuna.orbportability.OA) SimpleObjectImpl(com.hp.mwtests.orbportability.orbspecific.orbinstance.SimpleObjectImpl) ORB(com.arjuna.orbportability.ORB) Test(org.junit.Test)

Aggregations

OA (com.arjuna.orbportability.OA)1 ORB (com.arjuna.orbportability.ORB)1 Services (com.arjuna.orbportability.Services)1 SimpleObjectImpl (com.hp.mwtests.orbportability.orbspecific.orbinstance.SimpleObjectImpl)1 Test (org.junit.Test)1