use of joynr.interlanguagetest.namedTypeCollection1.StructWithStringArray 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.namedTypeCollection1.StructWithStringArray in project joynr by bmwcarit.
the class IltUtil method createStructWithStringArray.
public static StructWithStringArray createStructWithStringArray() {
StructWithStringArray structWithStringArray = new StructWithStringArray();
fillStructWithStringArray(structWithStringArray);
return structWithStringArray;
}
use of joynr.interlanguagetest.namedTypeCollection1.StructWithStringArray in project joynr by bmwcarit.
the class IltProvider method methodToFireBroadcastWithMultipleArrayParameters.
/*
* methodToFireBroadcastWithMultipleArrayParameters
*/
@Override
public Promise<DeferredVoid> methodToFireBroadcastWithMultipleArrayParameters(String[] partitions) {
logger.warn("*********************************************************************");
logger.warn("* IltProvider.methodToFireBroadcastWithMultipleArrayParameters called");
logger.warn("*********************************************************************");
DeferredVoid deferred = new DeferredVoid();
Long[] uInt64ArrayOut = IltUtil.createUInt64Array();
StructWithStringArray[] structWithStringArrayArrayOut = IltUtil.createStructWithStringArrayArray();
fireBroadcastWithMultipleArrayParameters(uInt64ArrayOut, structWithStringArrayArrayOut, partitions);
deferred.resolve();
return new Promise<DeferredVoid>(deferred);
}
use of joynr.interlanguagetest.namedTypeCollection1.StructWithStringArray in project joynr by bmwcarit.
the class IltProvider method methodToFireBroadcastWithFiltering.
/*
* methodToFireBroadcastWithFiltering
*/
@Override
public Promise<DeferredVoid> methodToFireBroadcastWithFiltering(String stringArg) {
logger.warn("*******************************************************");
logger.warn("* IltProvider.methodToFireBroadcastWithFiltering called");
logger.warn("*******************************************************");
DeferredVoid deferred = new DeferredVoid();
// take the stringArg as input for the filtering
String stringOut = stringArg;
String[] stringArrayOut = IltUtil.createStringArray();
ExtendedTypeCollectionEnumerationInTypeCollection enumerationOut = ExtendedTypeCollectionEnumerationInTypeCollection.ENUM_2_VALUE_EXTENSION_FOR_TYPECOLLECTION;
StructWithStringArray structWithStringArrayOut = IltUtil.createStructWithStringArray();
StructWithStringArray[] structWithStringArrayArrayOut = IltUtil.createStructWithStringArrayArray();
fireBroadcastWithFiltering(stringOut, stringArrayOut, enumerationOut, structWithStringArrayOut, structWithStringArrayArrayOut);
deferred.resolve();
return new Promise<DeferredVoid>(deferred);
}
use of joynr.interlanguagetest.namedTypeCollection1.StructWithStringArray in project joynr by bmwcarit.
the class IltProviderBean method methodToFireBroadcastWithFiltering.
/*
* methodToFireBroadcastWithFiltering
*/
@Override
public void methodToFireBroadcastWithFiltering(String stringArg) {
logger.warn("*******************************************************");
logger.warn("* IltProvider.methodToFireBroadcastWithFiltering called");
logger.warn("*******************************************************");
// take the stringArg as input for the filtering
String stringOut = stringArg;
String[] stringArrayOut = IltUtil.createStringArray();
ExtendedTypeCollectionEnumerationInTypeCollection enumerationOut = ExtendedTypeCollectionEnumerationInTypeCollection.ENUM_2_VALUE_EXTENSION_FOR_TYPECOLLECTION;
StructWithStringArray structWithStringArrayOut = IltUtil.createStructWithStringArray();
StructWithStringArray[] structWithStringArrayArrayOut = IltUtil.createStructWithStringArrayArray();
// TODO
// fireBroadcastWithFiltering(stringOut,
// stringArrayOut,
// enumerationOut,
// structWithStringArrayOut,
// structWithStringArrayArrayOut);
}
Aggregations