diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-13 18:31:21 +0200 |
---|---|---|
committer | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-13 18:31:21 +0200 |
commit | d5ec7bf55217508e2b5cebe640d586598379f97a (patch) | |
tree | 4bbe052d2eb67c11c5fbc22998c95e55e7aef4d0 /vid-app-common/src/test/java/org/onap/vid/asdc/beans/SecureServicesTest.java | |
parent | 80098ffa01c5a0f4dd5b99f41c31d51e9dc25762 (diff) |
Unit tests
Change-Id: Ib9f73b7ba5a509610896b8bbdc02c180e60ee959
Issue-ID: VID-197
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/asdc/beans/SecureServicesTest.java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/asdc/beans/SecureServicesTest.java | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/asdc/beans/SecureServicesTest.java b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/SecureServicesTest.java new file mode 100644 index 00000000..3cd84af5 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/asdc/beans/SecureServicesTest.java @@ -0,0 +1,52 @@ +package org.onap.vid.asdc.beans; + +import java.util.Collection; + +import org.junit.Test; + +public class SecureServicesTest { + + private SecureServices createTestSubject() { + return new SecureServices(); + } + + @Test + public void testSetServices() throws Exception { + SecureServices testSubject; + Collection<Service> services = null; + + // default test + testSubject = createTestSubject(); + testSubject.setServices(services); + } + + @Test + public void testGetServices() throws Exception { + SecureServices testSubject; + Collection<Service> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getServices(); + } + + @Test + public void testIsReadOnly() throws Exception { + SecureServices testSubject; + boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.isReadOnly(); + } + + @Test + public void testSetReadOnly() throws Exception { + SecureServices testSubject; + boolean readOnly = false; + + // default test + testSubject = createTestSubject(); + testSubject.setReadOnly(readOnly); + } +}
\ No newline at end of file |