use of joynr.interlanguagetest.namedTypeCollection2.ExtendedStructOfPrimitives in project joynr by bmwcarit.
the class IltConsumerSyncMethodTest method callMethodWithMultipleStructParameters.
@Test
public void callMethodWithMultipleStructParameters() {
LOG.info(name.getMethodName() + "");
try {
MethodWithMultipleStructParametersReturned result;
// setup input parameters
ExtendedStructOfPrimitives extendedStructOfPrimitivesOut = IltUtil.createExtendedStructOfPrimitives();
BaseStruct baseStructOut = IltUtil.createBaseStruct();
result = testInterfaceProxy.methodWithMultipleStructParameters(extendedStructOfPrimitivesOut, baseStructOut);
if (result == null) {
fail(name.getMethodName() + " - FAILED - got no result");
return;
}
if (!IltUtil.checkBaseStructWithoutElements(result.baseStructWithoutElementsOut)) {
fail(name.getMethodName() + " - FAILED - got invalid result - baseStructWithoutElementsOut");
return;
}
if (!IltUtil.checkExtendedExtendedBaseStruct(result.extendedExtendedBaseStructOut)) {
fail(name.getMethodName() + " - FAILED - got invalid result - extendedExtendedBaseStructOut");
return;
}
} catch (Exception e) {
fail(name.getMethodName() + " - FAILED - caught unexpected exception: " + e.getMessage());
return;
}
LOG.info(name.getMethodName() + " - OK");
}
use of joynr.interlanguagetest.namedTypeCollection2.ExtendedStructOfPrimitives in project joynr by bmwcarit.
the class IltUtil method createExtendedStructOfPrimitives.
public static ExtendedStructOfPrimitives createExtendedStructOfPrimitives() {
ExtendedStructOfPrimitives extendedStructOfPrimitives = new ExtendedStructOfPrimitives();
fillExtendedStructOfPrimitives(extendedStructOfPrimitives);
return extendedStructOfPrimitives;
}
use of joynr.interlanguagetest.namedTypeCollection2.ExtendedStructOfPrimitives in project joynr by bmwcarit.
the class IltProviderBean method methodToFireBroadcastWithSingleStructParameter.
/*
* methodToFireBroadcastWithSingleStructParameter
*/
@Override
public void methodToFireBroadcastWithSingleStructParameter() {
logger.warn("*******************************************************************");
logger.warn("* IltProvider.methodToFireBroadcastWithSingleStructParameter called");
logger.warn("*******************************************************************");
ExtendedStructOfPrimitives extendedStructOfPrimitivesOut = IltUtil.createExtendedStructOfPrimitives();
// TODO
// fireBroadcastWithSingleStructParameter(extendedStructOfPrimitivesOut);
}
use of joynr.interlanguagetest.namedTypeCollection2.ExtendedStructOfPrimitives in project joynr by bmwcarit.
the class IltProviderBean method methodWithSingleStructParameters.
/*
* methodWithSingleStructParameters
*/
@Override
public ExtendedStructOfPrimitives methodWithSingleStructParameters(ExtendedBaseStruct extendedBaseStructArg) {
logger.warn("*****************************************************");
logger.warn("* IltProvider.methodWithSingleStructParameters called");
logger.warn("*****************************************************");
if (!IltUtil.checkExtendedBaseStruct(extendedBaseStructArg)) {
logger.error("methodWithSingleStructParameters: invalid parameter extendedBaseStructArg");
throw new ProviderRuntimeException("methodWithSingleStructParameters: invalid parameter extendedBaseStructArg");
}
// prepare output parameters
ExtendedStructOfPrimitives extendedStructOfPrimitivesOut = IltUtil.createExtendedStructOfPrimitives();
return extendedStructOfPrimitivesOut;
}
use of joynr.interlanguagetest.namedTypeCollection2.ExtendedStructOfPrimitives in project joynr by bmwcarit.
the class IltProviderBean method methodWithMultipleStructParameters.
/*
* methodWithMultipleStructParameters
*/
@Override
public MethodWithMultipleStructParametersReturned methodWithMultipleStructParameters(ExtendedStructOfPrimitives extendedStructOfPrimitivesArg, BaseStruct baseStructArg) {
logger.warn("*******************************************************");
logger.warn("* IltProvider.methodWithMultipleStructParameters called");
logger.warn("*******************************************************");
// check input parameter
if (!IltUtil.checkExtendedStructOfPrimitives(extendedStructOfPrimitivesArg)) {
throw new ProviderRuntimeException("methodWithMultipleStructParameters: invalid parameter extendedStructOfPrimitivesArg");
}
if (!IltUtil.checkBaseStruct(baseStructArg)) {
throw new ProviderRuntimeException("methodWithMultipleStructParameters: invalid parameter baseStructArg");
}
// set output values
BaseStructWithoutElements baseStructWithoutElementsOut = IltUtil.createBaseStructWithoutElements();
ExtendedExtendedBaseStruct extendedExtendedBaseStructOut = IltUtil.createExtendedExtendedBaseStruct();
return new MethodWithMultipleStructParametersReturned(baseStructWithoutElementsOut, extendedExtendedBaseStructOut);
}
Aggregations