@Test public void createResponseWithoutOnlyDefaults() throws Exception { SubmitRequest submit = new SubmitRequest(); SubmitResponse submitResponse = submit.createResponse(); Assert.assertEquals(null, submitResponse.getReferenceId()); Assert.assertEquals(new Integer(0), submitResponse.getErrorCode()); Assert.assertEquals("OK", submitResponse.getErrorMessage()); }
public SubmitResponse createResponse() throws SxmpErrorException { SubmitResponse submitResp = new SubmitResponse(); submitResp.setReferenceId(this.getReferenceId()); return submitResp; }
SubmitRequest extends MessageRequest<SubmitResponse> { public SubmitResponse createResponse() throws SxmpErrorException { SubmitResponse submitResp = new SubmitResponse(); submitResp.setReferenceId(this.getReferenceId()); return submitResp; } }
SubmitRequest extends MessageRequest<SubmitResponse> { public SubmitResponse createResponse() throws SxmpErrorException { SubmitResponse submitResp = new SubmitResponse(); submitResp.setReferenceId(this.getReferenceId()); return submitResp; } SubmitRequest();  SubmitRequest(String version); }
SubmitRequest extends MessageRequest<SubmitResponse> { public SubmitResponse createResponse() throws SxmpErrorException { SubmitResponse submitResp = new SubmitResponse(); submitResp.setReferenceId(this.getReferenceId()); return submitResp; } SubmitRequest();  SubmitRequest(String version); SubmitResponse createResponse(); void setDeliveryReport(Boolean value); Boolean getDeliveryReport(); @Override void validate(); }
SubmitRequest extends MessageRequest<SubmitResponse> { public SubmitResponse createResponse() throws SxmpErrorException { SubmitResponse submitResp = new SubmitResponse(); submitResp.setReferenceId(this.getReferenceId()); return submitResp; } SubmitRequest();  SubmitRequest(String version); SubmitResponse createResponse(); void setDeliveryReport(Boolean value); Boolean getDeliveryReport(); @Override void validate();  }