use of joynr.interlanguagetest.TestInterfaceSync.MethodWithMultipleArrayParametersReturned in project joynr by bmwcarit.
the class IltConsumerSyncMethodTest method callMethodWithMultipleArrayParameters.
@Test
public void callMethodWithMultipleArrayParameters() {
LOG.info(name.getMethodName() + "");
try {
String[] arg1 = IltUtil.createStringArray();
Byte[] arg2 = IltUtil.createByteArray();
ExtendedInterfaceEnumerationInTypeCollection[] arg3 = IltUtil.createExtendedInterfaceEnumerationInTypeCollectionArray();
StructWithStringArray[] arg4 = IltUtil.createStructWithStringArrayArray();
MethodWithMultipleArrayParametersReturned result;
result = testInterfaceProxy.methodWithMultipleArrayParameters(arg1, arg2, arg3, arg4);
if (result == null) {
fail(name.getMethodName() + " - FAILED - got no result");
return;
}
if (!IltUtil.checkUInt64Array(result.uInt64ArrayOut)) {
fail(name.getMethodName() + " - FAILED - got invalid result - stringArrayArg");
return;
}
if (result.structWithStringArrayArrayOut.length != 2) {
fail(name.getMethodName() + " - FAILED - got invalid result - structWithStringArrayArrayOut");
return;
}
if (!IltUtil.checkStructWithStringArray(result.structWithStringArrayArrayOut[0])) {
fail(name.getMethodName() + " - FAILED - got invalid result - structWithStringArrayArrayOut[0]");
return;
}
if (!IltUtil.checkStructWithStringArray(result.structWithStringArrayArrayOut[1])) {
fail(name.getMethodName() + " - FAILED - got invalid result - structWithStringArrayArrayOut[1]");
return;
}
} catch (Exception e) {
fail(name.getMethodName() + " - FAILED - caught unexpected exception: " + e.getMessage());
return;
}
LOG.info(name.getMethodName() + " - OK");
}
use of joynr.interlanguagetest.TestInterfaceSync.MethodWithMultipleArrayParametersReturned in project joynr by bmwcarit.
the class IltConsumerSyncMethodTest method callMethodWithMultipleArrayParameters.
@Test
public void callMethodWithMultipleArrayParameters() {
LOG.info(name.getMethodName() + "");
try {
String[] arg1 = IltUtil.createStringArray();
Byte[] arg2 = IltUtil.createByteArray();
ExtendedInterfaceEnumerationInTypeCollection[] arg3 = IltUtil.createExtendedInterfaceEnumerationInTypeCollectionArray();
StructWithStringArray[] arg4 = IltUtil.createStructWithStringArrayArray();
MethodWithMultipleArrayParametersReturned result;
result = testInterfaceProxy.methodWithMultipleArrayParameters(arg1, arg2, arg3, arg4);
if (result == null) {
fail(name.getMethodName() + " - FAILED - got no result");
return;
}
if (!IltUtil.checkUInt64Array(result.uInt64ArrayOut)) {
fail(name.getMethodName() + " - FAILED - got invalid result - stringArrayArg");
return;
}
if (result.structWithStringArrayArrayOut.length != 2) {
fail(name.getMethodName() + " - FAILED - got invalid result - structWithStringArrayArrayOut");
return;
}
if (!IltUtil.checkStructWithStringArray(result.structWithStringArrayArrayOut[0])) {
fail(name.getMethodName() + " - FAILED - got invalid result - structWithStringArrayArrayOut[0]");
return;
}
if (!IltUtil.checkStructWithStringArray(result.structWithStringArrayArrayOut[1])) {
fail(name.getMethodName() + " - FAILED - got invalid result - structWithStringArrayArrayOut[1]");
return;
}
} catch (Exception e) {
fail(name.getMethodName() + " - FAILED - caught unexpected exception: " + e.getMessage());
return;
}
LOG.info(name.getMethodName() + " - OK");
}
Aggregations