use of joynr.interlanguagetest.TestInterfaceSync.OverloadedMethodOverloadedMethod1Returned in project joynr by bmwcarit.
the class IltConsumerSyncMethodTest method callOverloadedMethod_3.
@Test
public void callOverloadedMethod_3() {
LOG.info(name.getMethodName() + "");
try {
OverloadedMethodOverloadedMethod1Returned result;
ExtendedExtendedEnumeration[] enumArrayArg = IltUtil.createExtendedExtendedEnumerationArray();
Long int64Arg = 1L;
BaseStruct baseStructArg = IltUtil.createBaseStruct();
Boolean booleanArg = false;
result = testInterfaceProxy.overloadedMethod(enumArrayArg, int64Arg, baseStructArg, booleanArg);
if (result == null) {
fail(name.getMethodName() + " - FAILED - got no result");
return;
}
if (result.doubleOut != 0d || !IltUtil.checkStringArray(result.stringArrayOut)) {
fail(name.getMethodName() + " - FAILED - got invalid result - doubleOut");
return;
}
if (!IltUtil.checkExtendedBaseStruct(result.extendedBaseStructOut)) {
fail(name.getMethodName() + " - FAILED - got invalid result - extendedBaseStructOut");
return;
}
} catch (Exception e) {
fail(name.getMethodName() + " - FAILED - caught unexpected exception: " + e.getMessage());
return;
}
LOG.info(name.getMethodName() + " - OK");
}
use of joynr.interlanguagetest.TestInterfaceSync.OverloadedMethodOverloadedMethod1Returned in project joynr by bmwcarit.
the class IltConsumerSyncMethodTest method callOverloadedMethod_3.
@Test
public void callOverloadedMethod_3() {
LOG.info(name.getMethodName() + "");
try {
OverloadedMethodOverloadedMethod1Returned result;
ExtendedExtendedEnumeration[] enumArrayArg = IltUtil.createExtendedExtendedEnumerationArray();
Long int64Arg = 1L;
BaseStruct baseStructArg = IltUtil.createBaseStruct();
Boolean booleanArg = false;
result = testInterfaceProxy.overloadedMethod(enumArrayArg, int64Arg, baseStructArg, booleanArg);
if (result == null) {
fail(name.getMethodName() + " - FAILED - got no result");
return;
}
if (result.doubleOut != 0d || !IltUtil.checkStringArray(result.stringArrayOut)) {
fail(name.getMethodName() + " - FAILED - got invalid result - doubleOut");
return;
}
if (!IltUtil.checkExtendedBaseStruct(result.extendedBaseStructOut)) {
fail(name.getMethodName() + " - FAILED - got invalid result - extendedBaseStructOut");
return;
}
} catch (Exception e) {
fail(name.getMethodName() + " - FAILED - caught unexpected exception: " + e.getMessage());
return;
}
LOG.info(name.getMethodName() + " - OK");
}
Aggregations