X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fesr-server.git;a=blobdiff_plain;f=esr-mgr%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Fesr%2Fentity%2Faai%2FEsrSystemInfoTest.java;h=3c90d368d018cf54b15209c343d6a05d526103d5;hp=bca4ce688787a2e9c48983378491ea2e71be2471;hb=ed26992f976741031237ead3a5dc0565d4318b05;hpb=f73ad41f58f1f60d00d42a8bc5fc2502a46d62dd diff --git a/esr-mgr/src/test/java/org/onap/aai/esr/entity/aai/EsrSystemInfoTest.java b/esr-mgr/src/test/java/org/onap/aai/esr/entity/aai/EsrSystemInfoTest.java index bca4ce6..3c90d36 100644 --- a/esr-mgr/src/test/java/org/onap/aai/esr/entity/aai/EsrSystemInfoTest.java +++ b/esr-mgr/src/test/java/org/onap/aai/esr/entity/aai/EsrSystemInfoTest.java @@ -16,168 +16,167 @@ package org.onap.aai.esr.entity.aai; import static org.junit.Assert.assertEquals; - import org.junit.Test; public class EsrSystemInfoTest { - - @Test - public void getterAndSetter4esrSystemInfoId(){ - final String esrSystemInfoId = "esrSystemInfoId-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setEsrSystemInfoId(esrSystemInfoId); - assertEquals(esrSystemInfo.getEsrSystemInfoId(), esrSystemInfoId); - } - - @Test - public void getterAndSetter4systemName(){ - final String systemName = "systemName-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setSystemName(systemName); - assertEquals(esrSystemInfo.getSystemName(), systemName); - } - - @Test - public void getterAndSetter4type(){ - final String type = "type-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setType(type); - assertEquals(esrSystemInfo.getType(), type); - } - - @Test - public void getterAndSetter4vendor(){ - final String vendor = "vendor-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setVendor(vendor); - assertEquals(esrSystemInfo.getVendor(), vendor); - } - - @Test - public void getterAndSetter4version(){ - final String version = "version-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setVersion(version); - assertEquals(esrSystemInfo.getVersion(), version); - } - - @Test - public void getterAndSetter4serviceUrl(){ - final String serviceUrl = "serviceUrl-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setServiceUrl(serviceUrl); - assertEquals(esrSystemInfo.getServiceUrl(), serviceUrl); - } - - @Test - public void getterAndSetter4userName(){ - final String userName = "userName-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setUserName(userName); - assertEquals(esrSystemInfo.getUserName(), userName); - } - - @Test - public void getterAndSetter4password(){ - final String password = "password-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setPassword(password); - assertEquals(esrSystemInfo.getPassword(), password); - } - - @Test - public void getterAndSetter4systemType(){ - final String systemType = "systemType-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setSystemType(systemType); - assertEquals(esrSystemInfo.getSystemType(), systemType); - } - - @Test - public void getterAndSetter4protocol(){ - final String protocol = "protocol-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setProtocol(protocol); - assertEquals(esrSystemInfo.getProtocol(), protocol); - } - - @Test - public void getterAndSetter4sslCassert(){ - final String sslCassert = "sslCassert-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setSslCassert(sslCassert); - assertEquals(esrSystemInfo.getSslCassert(), sslCassert); - } - - @Test - public void getterAndSetter4sslInsecure(){ - final Boolean sslInsecure = true; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setSslInsecure(sslInsecure); - assertEquals(esrSystemInfo.getSslInsecure(), sslInsecure); - } - - @Test - public void getterAndSetter4ipAddress(){ - final String ipAddress = "ipAddress-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setIpAddress(ipAddress); - assertEquals(esrSystemInfo.getIpAddress(), ipAddress); - } - - @Test - public void getterAndSetter4port(){ - final String port = "port-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setIpAddress(port); - assertEquals(esrSystemInfo.getIpAddress(), port); - } - - @Test - public void getterAndSetter4cloudDomain(){ - final String cloudDomain = "cloudDomain-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setCloudDomain(cloudDomain); - assertEquals(esrSystemInfo.getCloudDomain(), cloudDomain); - } - - @Test - public void getterAndSetter4defaultTenant(){ - final String defaultTenant = "defaultTenant-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setDefaultTenant(defaultTenant); - assertEquals(esrSystemInfo.getDefaultTenant(), defaultTenant); - } - - @Test - public void getterAndSetter4passive(){ - final Boolean passive = true; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setPassive(passive); - assertEquals(esrSystemInfo.getPassive(), passive); - } - - @Test - public void getterAndSetter4remotePath(){ - final String remotePath = "remotePath-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setRemotePath(remotePath); - assertEquals(esrSystemInfo.getRemotePath(), remotePath); - } - - @Test - public void getterAndSetter4systemStatus(){ - final String systemStatus = "defaultTenant-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setSystemStatus(systemStatus); - assertEquals(esrSystemInfo.getSystemStatus(), systemStatus); - } - - @Test - public void getterAndSetter4resourceVersion(){ - final String resourceVersion = "resourceVersion-test"; - EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); - esrSystemInfo.setResouceVersion(resourceVersion); - assertEquals(esrSystemInfo.getResouceVersion(), resourceVersion); - } + + @Test + public void getterAndSetter4esrSystemInfoId() { + final String esrSystemInfoId = "esrSystemInfoId-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setEsrSystemInfoId(esrSystemInfoId); + assertEquals(esrSystemInfo.getEsrSystemInfoId(), esrSystemInfoId); + } + + @Test + public void getterAndSetter4systemName() { + final String systemName = "systemName-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setSystemName(systemName); + assertEquals(esrSystemInfo.getSystemName(), systemName); + } + + @Test + public void getterAndSetter4type() { + final String type = "type-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setType(type); + assertEquals(esrSystemInfo.getType(), type); + } + + @Test + public void getterAndSetter4vendor() { + final String vendor = "vendor-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setVendor(vendor); + assertEquals(esrSystemInfo.getVendor(), vendor); + } + + @Test + public void getterAndSetter4version() { + final String version = "version-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setVersion(version); + assertEquals(esrSystemInfo.getVersion(), version); + } + + @Test + public void getterAndSetter4serviceUrl() { + final String serviceUrl = "serviceUrl-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setServiceUrl(serviceUrl); + assertEquals(esrSystemInfo.getServiceUrl(), serviceUrl); + } + + @Test + public void getterAndSetter4userName() { + final String userName = "userName-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setUserName(userName); + assertEquals(esrSystemInfo.getUserName(), userName); + } + + @Test + public void getterAndSetter4password() { + final String password = "password-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setPassword(password); + assertEquals(esrSystemInfo.getPassword(), password); + } + + @Test + public void getterAndSetter4systemType() { + final String systemType = "systemType-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setSystemType(systemType); + assertEquals(esrSystemInfo.getSystemType(), systemType); + } + + @Test + public void getterAndSetter4protocol() { + final String protocol = "protocol-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setProtocol(protocol); + assertEquals(esrSystemInfo.getProtocol(), protocol); + } + + @Test + public void getterAndSetter4sslCassert() { + final String sslCassert = "sslCassert-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setSslCassert(sslCassert); + assertEquals(esrSystemInfo.getSslCassert(), sslCassert); + } + + @Test + public void getterAndSetter4sslInsecure() { + final Boolean sslInsecure = true; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setSslInsecure(sslInsecure); + assertEquals(esrSystemInfo.getSslInsecure(), sslInsecure); + } + + @Test + public void getterAndSetter4ipAddress() { + final String ipAddress = "ipAddress-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setIpAddress(ipAddress); + assertEquals(esrSystemInfo.getIpAddress(), ipAddress); + } + + @Test + public void getterAndSetter4port() { + final String port = "port-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setIpAddress(port); + assertEquals(esrSystemInfo.getIpAddress(), port); + } + + @Test + public void getterAndSetter4cloudDomain() { + final String cloudDomain = "cloudDomain-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setCloudDomain(cloudDomain); + assertEquals(esrSystemInfo.getCloudDomain(), cloudDomain); + } + + @Test + public void getterAndSetter4defaultTenant() { + final String defaultTenant = "defaultTenant-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setDefaultTenant(defaultTenant); + assertEquals(esrSystemInfo.getDefaultTenant(), defaultTenant); + } + + @Test + public void getterAndSetter4passive() { + final Boolean passive = true; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setPassive(passive); + assertEquals(esrSystemInfo.getPassive(), passive); + } + + @Test + public void getterAndSetter4remotePath() { + final String remotePath = "remotePath-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setRemotePath(remotePath); + assertEquals(esrSystemInfo.getRemotePath(), remotePath); + } + + @Test + public void getterAndSetter4systemStatus() { + final String systemStatus = "defaultTenant-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setSystemStatus(systemStatus); + assertEquals(esrSystemInfo.getSystemStatus(), systemStatus); + } + + @Test + public void getterAndSetter4resourceVersion() { + final String resourceVersion = "resourceVersion-test"; + EsrSystemInfo esrSystemInfo = new EsrSystemInfo(); + esrSystemInfo.setResouceVersion(resourceVersion); + assertEquals(esrSystemInfo.getResouceVersion(), resourceVersion); + } }