diff options
author | Michael Lando <ml636r@att.com> | 2018-06-02 16:50:20 +0300 |
---|---|---|
committer | Michael Lando <ml636r@att.com> | 2018-06-02 16:50:20 +0300 |
commit | d582d5ef41bdfd035de7834ea275fb8593ee3308 (patch) | |
tree | 749b3ff00d47fa0211df00615d3785260fb64e0f /catalog-dao/src/test/java | |
parent | 2c5e9a802d40dff290b2a7acd0db103617034038 (diff) |
new unit tests for sdc-dao
Change-Id: I5957837664a933169704c3041f9ba979f97ae1f6
Issue-ID: SDC-1333
Signed-off-by: Michael Lando <ml636r@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.java | 50 |
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 |