Search in sources :

Example 1 with OverloadedMethodOverloadedMethod1Returned

use of joynr.interlanguagetest.TestInterfaceSync.OverloadedMethodOverloadedMethod1Returned in project joynr by bmwcarit.

the class IltConsumerSyncMethodTest method callOverloadedMethod_3.

@Test
public void callOverloadedMethod_3() {
    LOG.info(name.getMethodName() + "");
    try {
        OverloadedMethodOverloadedMethod1Returned result;
        ExtendedExtendedEnumeration[] enumArrayArg = IltUtil.createExtendedExtendedEnumerationArray();
        Long int64Arg = 1L;
        BaseStruct baseStructArg = IltUtil.createBaseStruct();
        Boolean booleanArg = false;
        result = testInterfaceProxy.overloadedMethod(enumArrayArg, int64Arg, baseStructArg, booleanArg);
        if (result == null) {
            fail(name.getMethodName() + " - FAILED - got no result");
            return;
        }
        if (result.doubleOut != 0d || !IltUtil.checkStringArray(result.stringArrayOut)) {
            fail(name.getMethodName() + " - FAILED - got invalid result - doubleOut");
            return;
        }
        if (!IltUtil.checkExtendedBaseStruct(result.extendedBaseStructOut)) {
            fail(name.getMethodName() + " - FAILED - got invalid result - extendedBaseStructOut");
            return;
        }
    } catch (Exception e) {
        fail(name.getMethodName() + " - FAILED - caught unexpected exception: " + e.getMessage());
        return;
    }
    LOG.info(name.getMethodName() + " - OK");
}
Also used : ExtendedBaseStruct(joynr.interlanguagetest.namedTypeCollection2.ExtendedBaseStruct) BaseStruct(joynr.interlanguagetest.namedTypeCollection2.BaseStruct) OverloadedMethodOverloadedMethod1Returned(joynr.interlanguagetest.TestInterfaceSync.OverloadedMethodOverloadedMethod1Returned) ExtendedExtendedEnumeration(joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedEnumeration) ApplicationException(joynr.exceptions.ApplicationException) ProviderRuntimeException(joynr.exceptions.ProviderRuntimeException) Test(org.junit.Test)

Example 2 with OverloadedMethodOverloadedMethod1Returned

use of joynr.interlanguagetest.TestInterfaceSync.OverloadedMethodOverloadedMethod1Returned in project joynr by bmwcarit.

the class IltConsumerSyncMethodTest method callOverloadedMethod_3.

@Test
public void callOverloadedMethod_3() {
    LOG.info(name.getMethodName() + "");
    try {
        OverloadedMethodOverloadedMethod1Returned result;
        ExtendedExtendedEnumeration[] enumArrayArg = IltUtil.createExtendedExtendedEnumerationArray();
        Long int64Arg = 1L;
        BaseStruct baseStructArg = IltUtil.createBaseStruct();
        Boolean booleanArg = false;
        result = testInterfaceProxy.overloadedMethod(enumArrayArg, int64Arg, baseStructArg, booleanArg);
        if (result == null) {
            fail(name.getMethodName() + " - FAILED - got no result");
            return;
        }
        if (result.doubleOut != 0d || !IltUtil.checkStringArray(result.stringArrayOut)) {
            fail(name.getMethodName() + " - FAILED - got invalid result - doubleOut");
            return;
        }
        if (!IltUtil.checkExtendedBaseStruct(result.extendedBaseStructOut)) {
            fail(name.getMethodName() + " - FAILED - got invalid result - extendedBaseStructOut");
            return;
        }
    } catch (Exception e) {
        fail(name.getMethodName() + " - FAILED - caught unexpected exception: " + e.getMessage());
        return;
    }
    LOG.info(name.getMethodName() + " - OK");
}
Also used : ExtendedBaseStruct(joynr.interlanguagetest.namedTypeCollection2.ExtendedBaseStruct) BaseStruct(joynr.interlanguagetest.namedTypeCollection2.BaseStruct) OverloadedMethodOverloadedMethod1Returned(joynr.interlanguagetest.TestInterfaceSync.OverloadedMethodOverloadedMethod1Returned) ExtendedExtendedEnumeration(joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedEnumeration) ApplicationException(joynr.exceptions.ApplicationException) ProviderRuntimeException(joynr.exceptions.ProviderRuntimeException) Test(org.junit.Test)

Aggregations

ApplicationException (joynr.exceptions.ApplicationException)2 ProviderRuntimeException (joynr.exceptions.ProviderRuntimeException)2 OverloadedMethodOverloadedMethod1Returned (joynr.interlanguagetest.TestInterfaceSync.OverloadedMethodOverloadedMethod1Returned)2 BaseStruct (joynr.interlanguagetest.namedTypeCollection2.BaseStruct)2 ExtendedBaseStruct (joynr.interlanguagetest.namedTypeCollection2.ExtendedBaseStruct)2 ExtendedExtendedEnumeration (joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedEnumeration)2 Test (org.junit.Test)2