use of joynr.interlanguagetest.TestInterfaceSync.MethodWithMultipleEnumParametersReturned in project joynr by bmwcarit.
the class IltConsumerSyncMethodTest method callMethodWithMultipleEnumParameters.
@Test
public void callMethodWithMultipleEnumParameters() {
LOG.info(name.getMethodName() + "");
try {
joynr.interlanguagetest.Enumeration enumerationArg;
ExtendedTypeCollectionEnumerationInTypeCollection extendedEnumerationArg;
MethodWithMultipleEnumParametersReturned result;
enumerationArg = joynr.interlanguagetest.Enumeration.ENUM_0_VALUE_3;
extendedEnumerationArg = ExtendedTypeCollectionEnumerationInTypeCollection.ENUM_2_VALUE_EXTENSION_FOR_TYPECOLLECTION;
result = testInterfaceProxy.methodWithMultipleEnumParameters(enumerationArg, extendedEnumerationArg);
if (result == null) {
fail(name.getMethodName() + " - FAILED - got no result");
return;
}
if (result.enumerationOut != Enumeration.ENUM_0_VALUE_1 || result.extendedEnumerationOut != ExtendedEnumerationWithPartlyDefinedValues.ENUM_2_VALUE_EXTENSION_FOR_ENUM_WITHOUT_DEFINED_VALUES) {
LOG.info(name.getMethodName() + " - FAILED");
fail(name.getMethodName() + " - FAILED - got invalid result - enumerationOut");
return;
}
} catch (Exception e) {
fail(name.getMethodName() + " - FAILED - caught unexpected exception: " + e.getMessage());
return;
}
LOG.info(name.getMethodName() + " - OK");
}
use of joynr.interlanguagetest.TestInterfaceSync.MethodWithMultipleEnumParametersReturned in project joynr by bmwcarit.
the class IltConsumerSyncMethodTest method callMethodWithMultipleEnumParameters.
@Test
public void callMethodWithMultipleEnumParameters() {
LOG.info(name.getMethodName() + "");
try {
joynr.interlanguagetest.Enumeration enumerationArg;
ExtendedTypeCollectionEnumerationInTypeCollection extendedEnumerationArg;
MethodWithMultipleEnumParametersReturned result;
enumerationArg = joynr.interlanguagetest.Enumeration.ENUM_0_VALUE_3;
extendedEnumerationArg = ExtendedTypeCollectionEnumerationInTypeCollection.ENUM_2_VALUE_EXTENSION_FOR_TYPECOLLECTION;
result = testInterfaceProxy.methodWithMultipleEnumParameters(enumerationArg, extendedEnumerationArg);
if (result == null) {
fail(name.getMethodName() + " - FAILED - got no result");
return;
}
if (result.enumerationOut != Enumeration.ENUM_0_VALUE_1 || result.extendedEnumerationOut != ExtendedEnumerationWithPartlyDefinedValues.ENUM_2_VALUE_EXTENSION_FOR_ENUM_WITHOUT_DEFINED_VALUES) {
LOG.info(name.getMethodName() + " - FAILED");
fail(name.getMethodName() + " - FAILED - got invalid result - enumerationOut");
return;
}
} catch (Exception e) {
fail(name.getMethodName() + " - FAILED - caught unexpected exception: " + e.getMessage());
return;
}
LOG.info(name.getMethodName() + " - OK");
}
Aggregations