summaryrefslogtreecommitdiffstats
path: root/catalog-dao/src/test/java
diff options
context:
space:
mode:
authorTal Gitelman <tg851x@intl.att.com>2018-05-30 16:15:52 +0300
committerTal Gitelman <tg851x@intl.att.com>2018-05-30 13:17:16 +0000
commit4b93ef990cd41e9728b1059295a331e27c307df1 (patch)
tree48105df63c2029e3db432f31059714bf1dc55473 /catalog-dao/src/test/java
parente7c6fa0d421e0e9df5c848ff2b6fc61c1b71871b (diff)
new unit tests for sdc-dao
Change-Id: I2ec09504aee1ab315dbc8e1d02ac85ed76e24c9b Issue-ID: SDC-1333 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
Diffstat (limited to 'catalog-dao/src/test/java')
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/GraphPropertiesDictionaryTest.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/GraphPropertiesDictionaryTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/GraphPropertiesDictionaryTest.java
new file mode 100644
index 0000000000..5f0fe8f40d
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/GraphPropertiesDictionaryTest.java
@@ -0,0 +1,50 @@
+package org.openecomp.sdc.be.dao.neo4j;
+
+import org.junit.Test;
+
+public class GraphPropertiesDictionaryTest {
+
+ private GraphPropertiesDictionary createTestSubject() {
+ return GraphPropertiesDictionary.ADDITIONAL_INFO_ID_TO_KEY;
+ }
+
+ @Test
+ public void testGetProperty() throws Exception {
+ GraphPropertiesDictionary testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProperty();
+ }
+
+ @Test
+ public void testGetClazz() throws Exception {
+ GraphPropertiesDictionary testSubject;
+ Class result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getClazz();
+ }
+
+ @Test
+ public void testIsUnique() throws Exception {
+ GraphPropertiesDictionary testSubject;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isUnique();
+ }
+
+ @Test
+ public void testIsIndexed() throws Exception {
+ GraphPropertiesDictionary testSubject;
+ boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.isIndexed();
+ }
+} \ No newline at end of file