Raise JUnit coverage common-be
[sdc.git] / common-be / src / test / java / org / openecomp / sdc / be / datatypes / enums / JsonPresentationFieldsTest.java
1 package org.openecomp.sdc.be.datatypes.enums;
2
3 import org.junit.Test;
4
5 public class JsonPresentationFieldsTest {
6
7         private JsonPresentationFields createTestSubject() {
8                 return JsonPresentationFields.API_URL;
9         }
10
11         @Test
12         public void testGetPresentation() throws Exception {
13                 JsonPresentationFields testSubject;
14                 String result;
15
16                 // default test
17                 testSubject = createTestSubject();
18                 result = testSubject.getPresentation();
19         }
20
21         @Test
22         public void testSetPresentation() throws Exception {
23                 JsonPresentationFields testSubject;
24                 String presentation = "";
25
26                 // default test
27                 testSubject = createTestSubject();
28                 testSubject.setPresentation(presentation);
29         }
30
31         @Test
32         public void testGetStoredAs() throws Exception {
33                 JsonPresentationFields testSubject;
34                 GraphPropertyEnum result;
35
36                 // default test
37                 testSubject = createTestSubject();
38                 result = testSubject.getStoredAs();
39         }
40
41         @Test
42         public void testSetStoredAs() throws Exception {
43                 JsonPresentationFields testSubject;
44                 GraphPropertyEnum storedAs = null;
45
46                 // default test
47                 testSubject = createTestSubject();
48                 testSubject.setStoredAs(storedAs);
49         }
50
51         @Test
52         public void testGetPresentationByGraphProperty() throws Exception {
53                 GraphPropertyEnum property = null;
54                 String result;
55
56                 // default test
57                 result = JsonPresentationFields.getPresentationByGraphProperty(null);
58                 result = JsonPresentationFields.getPresentationByGraphProperty(GraphPropertyEnum.INVARIANT_UUID);
59         }
60
61         @Test
62         public void testToString() throws Exception {
63                 JsonPresentationFields testSubject;
64                 String result;
65
66                 // default test
67                 testSubject = createTestSubject();
68                 result = testSubject.toString();
69         }
70
71         @Test
72         public void testGetByPresentation() throws Exception {
73                 String presentation = "";
74                 JsonPresentationFields result;
75
76                 // default test
77                 result = JsonPresentationFields.getByPresentation(presentation);
78         }
79 }