1 package org.openecomp.sdc.common.rest.api;
6 public class RestResponseAsByteArrayTest {
8 private RestResponseAsByteArray createTestSubject() {
9 return new RestResponseAsByteArray(null, "", 0);
14 public void testGetResponse() throws Exception {
15 RestResponseAsByteArray testSubject;
19 testSubject = createTestSubject();
20 result = testSubject.getResponse();
25 public void testSetResponse() throws Exception {
26 RestResponseAsByteArray testSubject;
27 byte[] response = new byte[] { ' ' };
30 testSubject = createTestSubject();
31 testSubject.setResponse(response);
36 public void testGetHttpStatusCode() throws Exception {
37 RestResponseAsByteArray testSubject;
41 testSubject = createTestSubject();
42 result = testSubject.getHttpStatusCode();
47 public void testSetHttpStatusCode() throws Exception {
48 RestResponseAsByteArray testSubject;
49 int httpStatusCode = 0;
52 testSubject = createTestSubject();
53 testSubject.setHttpStatusCode(httpStatusCode);
58 public void testGetStatusDescription() throws Exception {
59 RestResponseAsByteArray testSubject;
63 testSubject = createTestSubject();
64 result = testSubject.getStatusDescription();
69 public void testSetStatusDescription() throws Exception {
70 RestResponseAsByteArray testSubject;
71 String statusDescription = "";
74 testSubject = createTestSubject();
75 testSubject.setStatusDescription(statusDescription);
80 public void testToString() throws Exception {
81 RestResponseAsByteArray testSubject;
85 testSubject = createTestSubject();
86 result = testSubject.toString();
91 public void testToPrettyString() throws Exception {
92 RestResponseAsByteArray testSubject;
96 testSubject = createTestSubject();
97 result = testSubject.toPrettyString();