ea8845784c5dd7968a296fac54504c2ceaf78dc8
[portal.git] / ecomp-portal-BE-common-test / src / main / java / org / openecomp / portalapp / portal / test / domain / ExternalSystemAccessTest.java
1 package org.openecomp.portalapp.portal.test.domain;
2
3 import static org.junit.Assert.assertEquals;
4
5 import org.junit.Test;
6 import org.openecomp.portalapp.portal.domain.ExternalSystemAccess;
7
8 public class ExternalSystemAccessTest {
9         
10         public ExternalSystemAccess mockExternalSystemAccess(){
11                 ExternalSystemAccess externalSystemAccess = new ExternalSystemAccess("test", false);
12         
13                 externalSystemAccess.setKey("test");
14                 externalSystemAccess.setAccessValue(false);
15                 
16                 return externalSystemAccess;
17         }
18
19         @Test
20         public void externalSystemAccessTest(){
21                 ExternalSystemAccess externalSystemAccess = mockExternalSystemAccess();
22                 
23                 assertEquals(externalSystemAccess.getKey(), "test");
24                 assertEquals(externalSystemAccess.getAccessValue(), false);
25         }
26 }
27