Search in sources :

Example 6 with ReadResponseList

use of com.netsuite.webservices.v2014_2.platform.messages.ReadResponseList in project components by Talend.

the class NetSuitePortTypeMockAdapterImpl method getList.

public GetListResponse getList(GetListRequest parameters) throws InvalidSessionFault, ExceededUsageLimitFault, UnexpectedErrorFault, ExceededRequestLimitFault, ExceededRequestSizeFault, InvalidCredentialsFault, InsufficientPermissionFault, ExceededRecordCountFault {
    GetListResponse response = null;
    if (port != null) {
        response = port.getList(parameters);
    }
    if (response == null) {
        response = new GetListResponse();
        ReadResponseList readResponseList = new ReadResponseList();
        readResponseList.setStatus(createSuccessStatus());
        response.setReadResponseList(readResponseList);
    }
    return response;
}
Also used : GetListResponse(com.netsuite.webservices.v2014_2.platform.messages.GetListResponse) ReadResponseList(com.netsuite.webservices.v2014_2.platform.messages.ReadResponseList)

Aggregations

InvocationOnMock (org.mockito.invocation.InvocationOnMock)4 GetListResponse (com.netsuite.webservices.v2014_2.platform.messages.GetListResponse)3 ReadResponseList (com.netsuite.webservices.v2014_2.platform.messages.ReadResponseList)3 GetListResponse (com.netsuite.webservices.v2016_2.platform.messages.GetListResponse)3 ReadResponseList (com.netsuite.webservices.v2016_2.platform.messages.ReadResponseList)3 NetSuitePortType (com.netsuite.webservices.v2014_2.platform.NetSuitePortType)2 GetListRequest (com.netsuite.webservices.v2014_2.platform.messages.GetListRequest)2 ReadResponse (com.netsuite.webservices.v2014_2.platform.messages.ReadResponse)2 NetSuitePortType (com.netsuite.webservices.v2016_2.platform.NetSuitePortType)2 GetListRequest (com.netsuite.webservices.v2016_2.platform.messages.GetListRequest)2 ReadResponse (com.netsuite.webservices.v2016_2.platform.messages.ReadResponse)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 BaseRef (com.netsuite.webservices.v2014_2.platform.core.BaseRef)1 CustomizationRef (com.netsuite.webservices.v2014_2.platform.core.CustomizationRef)1 CustomizationRefList (com.netsuite.webservices.v2014_2.platform.core.CustomizationRefList)1 CustomizationType (com.netsuite.webservices.v2014_2.platform.core.CustomizationType)1 GetCustomizationIdResult (com.netsuite.webservices.v2014_2.platform.core.GetCustomizationIdResult)1 RecordType (com.netsuite.webservices.v2014_2.platform.core.types.RecordType)1 GetCustomizationIdRequest (com.netsuite.webservices.v2014_2.platform.messages.GetCustomizationIdRequest)1