Search in sources :

Example 1 with ExtendedExtendedBaseStruct

use of joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct in project joynr by bmwcarit.

the class IltConsumerGetterSetterTest method callSetAttributeExtendedExtendedBaseStruct.

@Test
public void callSetAttributeExtendedExtendedBaseStruct() {
    LOG.info(name.getMethodName() + "");
    try {
        ExtendedExtendedBaseStruct extendedExtendedBaseStructArg = IltUtil.createExtendedExtendedBaseStruct();
        testInterfaceProxy.setAttributeExtendedExtendedBaseStruct(extendedExtendedBaseStructArg);
    } catch (Exception e) {
        fail(name.getMethodName() + " - FAILED - caught unexpected exception: " + e.getMessage());
        return;
    }
    LOG.info(name.getMethodName() + " - OK");
}
Also used : ExtendedExtendedBaseStruct(joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct) ProviderRuntimeException(joynr.exceptions.ProviderRuntimeException) Test(org.junit.Test)

Example 2 with ExtendedExtendedBaseStruct

use of joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct in project joynr by bmwcarit.

the class IltUtil method createExtendedExtendedBaseStruct.

public static ExtendedExtendedBaseStruct createExtendedExtendedBaseStruct() {
    ExtendedExtendedBaseStruct extendedExtendedBaseStruct = new ExtendedExtendedBaseStruct();
    fillExtendedExtendedBaseStruct(extendedExtendedBaseStruct);
    return extendedExtendedBaseStruct;
}
Also used : ExtendedExtendedBaseStruct(joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct)

Example 3 with ExtendedExtendedBaseStruct

use of joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct in project joynr by bmwcarit.

the class IltProviderBean method methodToFireBroadcastWithMultipleStructParameters.

/*
     * methodToFireBroadcastWithMultipleStructParameters
     */
@Override
public void methodToFireBroadcastWithMultipleStructParameters() {
    logger.warn("**********************************************************************");
    logger.warn("* IltProvider.methodToFireBroadcastWithMultipleStructParameters called");
    logger.warn("**********************************************************************");
    BaseStructWithoutElements baseStructWithoutElementsOut = IltUtil.createBaseStructWithoutElements();
    ExtendedExtendedBaseStruct extendedExtendedBaseStructOut = IltUtil.createExtendedExtendedBaseStruct();
// TODO
// fireBroadcastWithMultipleStructParameters(baseStructWithoutElementsOut, extendedExtendedBaseStructOut);
}
Also used : ExtendedExtendedBaseStruct(joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct) BaseStructWithoutElements(joynr.interlanguagetest.namedTypeCollection2.BaseStructWithoutElements)

Example 4 with ExtendedExtendedBaseStruct

use of joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct 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);
}
Also used : ExtendedExtendedBaseStruct(joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct) BaseStructWithoutElements(joynr.interlanguagetest.namedTypeCollection2.BaseStructWithoutElements) ProviderRuntimeException(joynr.exceptions.ProviderRuntimeException)

Example 5 with ExtendedExtendedBaseStruct

use of joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct in project joynr by bmwcarit.

the class IltProvider method methodWithMultipleStructParameters.

/*
     * methodWithMultipleStructParameters
     */
@Override
public Promise<MethodWithMultipleStructParametersDeferred> methodWithMultipleStructParameters(ExtendedStructOfPrimitives extendedStructOfPrimitivesArg, BaseStruct baseStructArg) {
    MethodWithMultipleStructParametersDeferred deferred = new MethodWithMultipleStructParametersDeferred();
    logger.warn("*******************************************************");
    logger.warn("* IltProvider.methodWithMultipleStructParameters called");
    logger.warn("*******************************************************");
    // check input parameter
    if (!IltUtil.checkExtendedStructOfPrimitives(extendedStructOfPrimitivesArg)) {
        deferred.reject(new ProviderRuntimeException("methodWithMultipleStructParameters: invalid parameter extendedStructOfPrimitivesArg"));
        return new Promise<MethodWithMultipleStructParametersDeferred>(deferred);
    }
    if (!IltUtil.checkBaseStruct(baseStructArg)) {
        deferred.reject(new ProviderRuntimeException("methodWithMultipleStructParameters: invalid parameter baseStructArg"));
        return new Promise<MethodWithMultipleStructParametersDeferred>(deferred);
    }
    // set output values
    BaseStructWithoutElements baseStructWithoutElementsOut = IltUtil.createBaseStructWithoutElements();
    ExtendedExtendedBaseStruct extendedExtendedBaseStructOut = IltUtil.createExtendedExtendedBaseStruct();
    deferred.resolve(baseStructWithoutElementsOut, extendedExtendedBaseStructOut);
    return new Promise<MethodWithMultipleStructParametersDeferred>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) ExtendedExtendedBaseStruct(joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct) BaseStructWithoutElements(joynr.interlanguagetest.namedTypeCollection2.BaseStructWithoutElements) ProviderRuntimeException(joynr.exceptions.ProviderRuntimeException)

Aggregations

ExtendedExtendedBaseStruct (joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct)11 ProviderRuntimeException (joynr.exceptions.ProviderRuntimeException)7 BaseStructWithoutElements (joynr.interlanguagetest.namedTypeCollection2.BaseStructWithoutElements)5 Test (org.junit.Test)5 Promise (io.joynr.provider.Promise)2 JoynrRuntimeException (io.joynr.exceptions.JoynrRuntimeException)1 DeferredVoid (io.joynr.provider.DeferredVoid)1 ApplicationException (joynr.exceptions.ApplicationException)1 MethodWithMultipleStructParametersCallback (joynr.interlanguagetest.TestInterfaceAsync.MethodWithMultipleStructParametersCallback)1 MethodWithMultipleStructParametersFuture (joynr.interlanguagetest.TestInterfaceAsync.MethodWithMultipleStructParametersFuture)1 MethodWithMultipleStructParametersReturned (joynr.interlanguagetest.TestInterfaceSync.MethodWithMultipleStructParametersReturned)1 BaseStruct (joynr.interlanguagetest.namedTypeCollection2.BaseStruct)1 ExtendedStructOfPrimitives (joynr.interlanguagetest.namedTypeCollection2.ExtendedStructOfPrimitives)1