Search in sources :

Example 1 with WriteResponseList

use of com.netsuite.webservices.test.platform.messages.WriteResponseList in project components by Talend.

the class NetSuiteClientServiceTest method createSuccessWriteResponseList.

private WriteResponseList createSuccessWriteResponseList(int recordCount) {
    WriteResponseList writeResponseList = new WriteResponseList();
    writeResponseList.setStatus(NetSuitePortTypeMockAdapterImpl.createSuccessStatus());
    for (int i = 0; i < recordCount; i++) {
        WriteResponse writeResponse = createSuccessWriteResponse();
        writeResponseList.getWriteResponse().add(writeResponse);
    }
    return writeResponseList;
}
Also used : WriteResponseList(com.netsuite.webservices.test.platform.messages.WriteResponseList) WriteResponse(com.netsuite.webservices.test.platform.messages.WriteResponse)

Aggregations

WriteResponse (com.netsuite.webservices.test.platform.messages.WriteResponse)1 WriteResponseList (com.netsuite.webservices.test.platform.messages.WriteResponseList)1