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;
}
Aggregations