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);
}
Aggregations