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