Unit tests
[vid.git] / vid-app-common / src / test / java / org / onap / vid / asdc / beans / SecureServicesTest.java
1 package org.onap.vid.asdc.beans;
2
3 import java.util.Collection;
4
5 import org.junit.Test;
6
7 public class SecureServicesTest {
8
9     private SecureServices createTestSubject() {
10         return new SecureServices();
11     }
12
13     @Test
14     public void testSetServices() throws Exception {
15         SecureServices testSubject;
16         Collection<Service> services = null;
17
18         // default test
19         testSubject = createTestSubject();
20         testSubject.setServices(services);
21     }
22
23     @Test
24     public void testGetServices() throws Exception {
25         SecureServices testSubject;
26         Collection<Service> result;
27
28         // default test
29         testSubject = createTestSubject();
30         result = testSubject.getServices();
31     }
32
33     @Test
34     public void testIsReadOnly() throws Exception {
35         SecureServices testSubject;
36         boolean result;
37
38         // default test
39         testSubject = createTestSubject();
40         result = testSubject.isReadOnly();
41     }
42
43     @Test
44     public void testSetReadOnly() throws Exception {
45         SecureServices testSubject;
46         boolean readOnly = false;
47
48         // default test
49         testSubject = createTestSubject();
50         testSubject.setReadOnly(readOnly);
51     }
52 }