Search in sources :

Example 1 with NotNestedEvent

use of alma.ADMINTEST1.NotNestedEvent in project ACS by ACS-Community.

the class AnyAideTest method testCorbaStructToJavaClass.

public void testCorbaStructToJavaClass() {
    //		String nestedStructId = "IDL:alma/acssamp/NotNestedStruct:1.0";
    NotNestedEvent notNestedStruct = new NotNestedEvent();
    notNestedStruct.val = advancedCS.getAny();
    notNestedStruct.val.insert_long(12);
    Any any1 = advancedCS.getAny();
    NotNestedEventHelper.insert(any1, notNestedStruct);
    String qualClassName = anyAide.corbaStructToJavaClass(any1.type(), false);
    assertEquals("alma.ADMINTEST1.NotNestedEvent", qualClassName);
    //		nestedStructId = "IDL:alma/acssamp/SampObj/SampDataBlock:1.0";
    NestedEvent nestedStruct = new NestedEvent();
    nestedStruct.sampVal = advancedCS.getAny();
    nestedStruct.sampVal.insert_long(12);
    Any any2 = advancedCS.getAny();
    NestedEventHelper.insert(any2, nestedStruct);
    qualClassName = anyAide.corbaStructToJavaClass(any2.type(), true);
    assertEquals("alma.ADMINTEST1.InterfaceForNestedEventDefinitionPackage.NestedEvent", qualClassName);
}
Also used : NotNestedEvent(alma.ADMINTEST1.NotNestedEvent) NestedEvent(alma.ADMINTEST1.InterfaceForNestedEventDefinitionPackage.NestedEvent) NotNestedEvent(alma.ADMINTEST1.NotNestedEvent) Any(org.omg.CORBA.Any)

Aggregations

NestedEvent (alma.ADMINTEST1.InterfaceForNestedEventDefinitionPackage.NestedEvent)1 NotNestedEvent (alma.ADMINTEST1.NotNestedEvent)1 Any (org.omg.CORBA.Any)1