Search in sources :

Example 1 with OverloadedMethodWithSelectorOverloadedMethodWithSelector1Returned

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

the class IltConsumerSyncMethodTest method callOverloadedMethodWithSelector_3.

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

Example 2 with OverloadedMethodWithSelectorOverloadedMethodWithSelector1Returned

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

the class IltConsumerSyncMethodTest method callOverloadedMethodWithSelector_3.

@Test
public void callOverloadedMethodWithSelector_3() {
    LOG.info(name.getMethodName() + "");
    try {
        OverloadedMethodWithSelectorOverloadedMethodWithSelector1Returned result;
        ExtendedExtendedEnumeration[] enumArrayArg = IltUtil.createExtendedExtendedEnumerationArray();
        Long int64arg = 1L;
        BaseStruct baseStructArg = IltUtil.createBaseStruct();
        Boolean booleanArg = false;
        result = testInterfaceProxy.overloadedMethodWithSelector(enumArrayArg, int64arg, baseStructArg, booleanArg);
        if (result == null) {
            fail(name.getMethodName() + " - FAILED - got no result");
            return;
        }
        if (!IltUtil.cmpDouble(result.doubleOut, 1.1d) || !IltUtil.checkExtendedBaseStruct(result.extendedBaseStructOut) || !IltUtil.checkStringArray(result.stringArrayOut)) {
            fail(name.getMethodName() + " - FAILED - got invalid result");
            return;
        }
    } catch (Exception e) {
        fail(name.getMethodName() + " - FAILED - caught unexpected exception: " + e.getMessage());
        return;
    }
    LOG.info(name.getMethodName() + " - OK");
}
Also used : OverloadedMethodWithSelectorOverloadedMethodWithSelector1Returned(joynr.interlanguagetest.TestInterfaceSync.OverloadedMethodWithSelectorOverloadedMethodWithSelector1Returned) ExtendedBaseStruct(joynr.interlanguagetest.namedTypeCollection2.ExtendedBaseStruct) BaseStruct(joynr.interlanguagetest.namedTypeCollection2.BaseStruct) 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 OverloadedMethodWithSelectorOverloadedMethodWithSelector1Returned (joynr.interlanguagetest.TestInterfaceSync.OverloadedMethodWithSelectorOverloadedMethodWithSelector1Returned)2 BaseStruct (joynr.interlanguagetest.namedTypeCollection2.BaseStruct)2 ExtendedBaseStruct (joynr.interlanguagetest.namedTypeCollection2.ExtendedBaseStruct)2 ExtendedExtendedEnumeration (joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedEnumeration)2 Test (org.junit.Test)2