use of com.netsuite.webservices.test.platform.core.StatusDetail in project components by Talend.
the class NetSuitePortTypeMockAdapterImpl method createErrorStatus.
public static Status createErrorStatus(StatusDetailCodeType code, String message) {
Status status = new Status();
status.setIsSuccess(false);
StatusDetail statusDetail = new StatusDetail();
statusDetail.setType(StatusDetailType.ERROR);
statusDetail.setCode(code);
statusDetail.setMessage(message);
status.getStatusDetail().add(statusDetail);
return status;
}
use of com.netsuite.webservices.test.platform.core.StatusDetail in project components by Talend.
the class TestNetSuiteClientService method toNsStatus.
public static NsStatus toNsStatus(Status status) {
if (status == null) {
return null;
}
NsStatus nsStatus = new NsStatus();
nsStatus.setSuccess(status.getIsSuccess());
for (StatusDetail detail : status.getStatusDetail()) {
nsStatus.getDetails().add(toNsStatusDetail(detail));
}
return nsStatus;
}
Aggregations