1 package org.openecomp.sdc.be.components.distribution.engine;
4 import org.openecomp.sdc.be.distribution.api.client.CambriaOperationStatus;
8 public class CambriaErrorResponseTest {
10 private CambriaErrorResponse createTestSubject() {
11 return new CambriaErrorResponse();
15 public void testConstructors() throws Exception {
16 CambriaErrorResponse testSubject;
17 CambriaOperationStatus result;
20 new CambriaErrorResponse(CambriaOperationStatus.AUTHENTICATION_ERROR);
21 new CambriaErrorResponse(CambriaOperationStatus.CONNNECTION_ERROR, 500);
25 public void testGetOperationStatus() throws Exception {
26 CambriaErrorResponse testSubject;
27 CambriaOperationStatus result;
30 testSubject = createTestSubject();
31 result = testSubject.getOperationStatus();
35 public void testSetOperationStatus() throws Exception {
36 CambriaErrorResponse testSubject;
37 CambriaOperationStatus operationStatus = null;
40 testSubject = createTestSubject();
41 testSubject.setOperationStatus(operationStatus);
45 public void testGetHttpCode() throws Exception {
46 CambriaErrorResponse testSubject;
50 testSubject = createTestSubject();
51 result = testSubject.getHttpCode();
55 public void testSetHttpCode() throws Exception {
56 CambriaErrorResponse testSubject;
60 testSubject = createTestSubject();
61 testSubject.setHttpCode(httpCode);
65 public void testAddVariable() throws Exception {
66 CambriaErrorResponse testSubject;
70 testSubject = createTestSubject();
71 testSubject.addVariable(variable);
75 public void testGetVariables() throws Exception {
76 CambriaErrorResponse testSubject;
80 testSubject = createTestSubject();
81 result = testSubject.getVariables();
85 public void testSetVariables() throws Exception {
86 CambriaErrorResponse testSubject;
87 List<String> variables = null;
90 testSubject = createTestSubject();
91 testSubject.setVariables(variables);
95 public void testToString() throws Exception {
96 CambriaErrorResponse testSubject;
100 testSubject = createTestSubject();
101 result = testSubject.toString();