1 package org.openecomp.sdc.be.components.impl.exceptions;
4 import org.openecomp.sdc.be.dao.api.ActionStatus;
5 import org.openecomp.sdc.exception.ResponseFormat;
7 public class ComponentExceptionTest {
9 private ComponentException createTestSubject() {
10 return new ComponentException(new ResponseFormat());
14 public void testConstructor() throws Exception {
15 new ComponentException(ActionStatus.AAI_ARTIFACT_GENERATION_FAILED, "mock", "moc");
19 public void testGetResponseFormat() throws Exception {
20 ComponentException testSubject;
21 ResponseFormat result;
24 testSubject = createTestSubject();
25 result = testSubject.getResponseFormat();
29 public void testGetActionStatus() throws Exception {
30 ComponentException testSubject;
34 testSubject = createTestSubject();
35 result = testSubject.getActionStatus();
39 public void testGetParams() throws Exception {
40 ComponentException testSubject;
44 testSubject = createTestSubject();
45 result = testSubject.getParams();