c2ad653353f92a735f447d38a81198de47aecced
[sdc.git] /
1 package org.openecomp.sdc.be.components.impl.exceptions;
2
3 import org.junit.Test;
4 import org.openecomp.sdc.be.dao.api.ActionStatus;
5 import org.openecomp.sdc.exception.ResponseFormat;
6
7 public class ComponentExceptionTest {
8
9         private ComponentException createTestSubject() {
10                 return new ComponentException(new ResponseFormat());
11         }
12
13         @Test
14         public void testConstructor() throws Exception {
15                 new ComponentException(ActionStatus.AAI_ARTIFACT_GENERATION_FAILED, "mock", "moc");
16         }
17         
18         @Test
19         public void testGetResponseFormat() throws Exception {
20                 ComponentException testSubject;
21                 ResponseFormat result;
22
23                 // default test
24                 testSubject = createTestSubject();
25                 result = testSubject.getResponseFormat();
26         }
27
28         @Test
29         public void testGetActionStatus() throws Exception {
30                 ComponentException testSubject;
31                 ActionStatus result;
32
33                 // default test
34                 testSubject = createTestSubject();
35                 result = testSubject.getActionStatus();
36         }
37
38         @Test
39         public void testGetParams() throws Exception {
40                 ComponentException testSubject;
41                 String[] result;
42
43                 // default test
44                 testSubject = createTestSubject();
45                 result = testSubject.getParams();
46         }
47 }