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