diff options
author | 2018-05-31 16:57:17 +0300 | |
---|---|---|
committer | 2018-05-31 15:24:39 +0000 | |
commit | cdb8d264670ae4b98eb3b40cc58ee06b2c2e70c9 (patch) | |
tree | d43609c24140c13f92c6d303b76820b74f8c7634 /catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/SdcSchemaFilesDataTest.java | |
parent | cc4088f4d26212b8dbeeff01f0ae2e38f2df4d3f (diff) |
new unit tests for sdc-dao
Change-Id: Ibf37c20c3d07f3cd2962e324f3e37354adad9870
Issue-ID: SDC-1333
Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
Diffstat (limited to 'catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/SdcSchemaFilesDataTest.java')
-rw-r--r-- | catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/SdcSchemaFilesDataTest.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/SdcSchemaFilesDataTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/SdcSchemaFilesDataTest.java index 2f3fb03051..31a6fb1314 100644 --- a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/SdcSchemaFilesDataTest.java +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/SdcSchemaFilesDataTest.java @@ -1,5 +1,6 @@ package org.openecomp.sdc.be.resources.data; +import java.nio.ByteBuffer; import java.util.Date; import org.junit.Test; @@ -11,6 +12,10 @@ public class SdcSchemaFilesDataTest { return new SdcSchemaFilesData(); } + @Test + public void testCtor() throws Exception { + new SdcSchemaFilesData("mock", new Date(), "mock", "mock", new byte[0], "mock"); + } @Test public void testGetSdcReleaseNum() throws Exception { @@ -77,7 +82,24 @@ public class SdcSchemaFilesDataTest { testSubject.setFileName(fileName); } + @Test + public void testGetPayload() throws Exception { + SdcSchemaFilesData testSubject; + + // default test + testSubject = createTestSubject(); + testSubject.getPayload(); + } + @Test + public void testSetPayload() throws Exception { + SdcSchemaFilesData testSubject; + ByteBuffer payload = ByteBuffer.wrap(new byte[0]); + + // default test + testSubject = createTestSubject(); + testSubject.setPayload(payload); + } |