Search in sources :

Example 1 with WriteResponse

use of com.netsuite.webservices.test.platform.messages.WriteResponse 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)

Example 2 with WriteResponse

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

the class NetSuiteClientServiceTest method createSuccessWriteResponse.

private WriteResponse createSuccessWriteResponse() {
    WriteResponse writeResponse = new WriteResponse();
    writeResponse.setStatus(NetSuitePortTypeMockAdapterImpl.createSuccessStatus());
    RecordRef recordRef = new RecordRef();
    recordRef.setInternalId(Integer.valueOf(10000 + rnd.nextInt()).toString());
    writeResponse.setBaseRef(recordRef);
    return writeResponse;
}
Also used : WriteResponse(com.netsuite.webservices.test.platform.messages.WriteResponse) RecordRef(com.netsuite.webservices.test.platform.core.RecordRef)

Aggregations

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