summaryrefslogtreecommitdiffstats
path: root/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnumTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnumTest.java')
-rw-r--r--common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnumTest.java110
1 files changed, 110 insertions, 0 deletions
diff --git a/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnumTest.java b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnumTest.java
new file mode 100644
index 0000000000..74bcf172e8
--- /dev/null
+++ b/common-be/src/test/java/org/openecomp/sdc/be/datatypes/enums/GraphPropertyEnumTest.java
@@ -0,0 +1,110 @@
+package org.openecomp.sdc.be.datatypes.enums;
+
+import java.util.List;
+
+import org.junit.Test;
+
+public class GraphPropertyEnumTest {
+
+ private GraphPropertyEnum createTestSubject() {
+ return GraphPropertyEnum.COMPONENT_TYPE;
+ }
+
+ @Test
+ public void testGetByProperty() throws Exception {
+ String property = "";
+ GraphPropertyEnum result;
+
+ // default test
+ result = GraphPropertyEnum.getByProperty(property);
+ result = GraphPropertyEnum.getByProperty(GraphPropertyEnum.COMPONENT_TYPE.getProperty());
+ }
+
+ @Test
+ public void testGetProperty() throws Exception {
+ GraphPropertyEnum testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProperty();
+ }
+
+ @Test
+ public void testSetProperty() throws Exception {
+ GraphPropertyEnum testSubject;
+ String property = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProperty(property);
+ }
+
+ @Test
+ public void testGetClazz() throws Exception {
+ GraphPropertyEnum testSubject;
+ Class result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getClazz();
+ }
+
+ @Test
+ public void testSetClazz() throws Exception {
+ GraphPropertyEnum testSubject;
+ Class clazz = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setClazz(clazz);
+ }
+
+ @Test
+ public void testIsUnique() throws Exception {
+ GraphPropertyEnum testSubject;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isUnique();
+ }
+
+ @Test
+ public void testSetUnique() throws Exception {
+ GraphPropertyEnum testSubject;
+ boolean unique = false;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setUnique(unique);
+ }
+
+ @Test
+ public void testIsIndexed() throws Exception {
+ GraphPropertyEnum testSubject;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isIndexed();
+ }
+
+ @Test
+ public void testSetIndexed() throws Exception {
+ GraphPropertyEnum testSubject;
+ boolean indexed = false;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setIndexed(indexed);
+ }
+
+ @Test
+ public void testGetAllProperties() throws Exception {
+ List<String> result;
+
+ // default test
+ result = GraphPropertyEnum.getAllProperties();
+ }
+} \ No newline at end of file