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%2Frest%2FThirdpartySdncRegisterInfoTest.java;h=4cd93550f8c98b6a868e0a598d98774dcd6e1de1;hp=86524c5fb9d7767036815ad121b91aef805d7efb;hb=ed26992f976741031237ead3a5dc0565d4318b05;hpb=f73ad41f58f1f60d00d42a8bc5fc2502a46d62dd diff --git a/esr-mgr/src/test/java/org/onap/aai/esr/entity/rest/ThirdpartySdncRegisterInfoTest.java b/esr-mgr/src/test/java/org/onap/aai/esr/entity/rest/ThirdpartySdncRegisterInfoTest.java index 86524c5..4cd9355 100644 --- a/esr-mgr/src/test/java/org/onap/aai/esr/entity/rest/ThirdpartySdncRegisterInfoTest.java +++ b/esr-mgr/src/test/java/org/onap/aai/esr/entity/rest/ThirdpartySdncRegisterInfoTest.java @@ -16,95 +16,94 @@ package org.onap.aai.esr.entity.rest; import static org.junit.Assert.assertEquals; - import org.junit.Test; public class ThirdpartySdncRegisterInfoTest { - @Test - public void getterAndSetter4cloudDomain(){ - final String thirdpartySdncId = "312erqdfa"; - ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); - thirdpartySdncRegisterInfo.setThirdpartySdncId(thirdpartySdncId); - assertEquals(thirdpartySdncRegisterInfo.getThirdpartySdncId(), thirdpartySdncId); - } - - @Test - public void getterAndSetter4name(){ - final String name = "sdnc-test"; - ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); - thirdpartySdncRegisterInfo.setName(name); - assertEquals(thirdpartySdncRegisterInfo.getName(), name); - } - - @Test - public void getterAndSetter4vendor(){ - final String vendor = "zte"; - ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); - thirdpartySdncRegisterInfo.setVendor(vendor); - assertEquals(thirdpartySdncRegisterInfo.getVendor(), vendor); - } - - @Test - public void getterAndSetter4version(){ - final String version = "v1.0"; - ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); - thirdpartySdncRegisterInfo.setVersion(version); - assertEquals(thirdpartySdncRegisterInfo.getVersion(), version); - } - - @Test - public void getterAndSetter4type(){ - final String type = "type-test"; - ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); - thirdpartySdncRegisterInfo.setType(type); - assertEquals(thirdpartySdncRegisterInfo.getType(), type); - } - - @Test - public void getterAndSetter4location(){ - final String location = "312erqdfa"; - ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); - thirdpartySdncRegisterInfo.setLocation(location); - assertEquals(thirdpartySdncRegisterInfo.getLocation(), location); - } - - @Test - public void getterAndSetter4url(){ - final String url = "http://13.44.22.11:5000"; - ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); - thirdpartySdncRegisterInfo.setUrl(url); - assertEquals(thirdpartySdncRegisterInfo.getUrl(), url); - } - - @Test - public void getterAndSetter4userName(){ - final String userName = "root"; - ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); - thirdpartySdncRegisterInfo.setUserName(userName); - assertEquals(thirdpartySdncRegisterInfo.getUserName(), userName); - } - - @Test - public void getterAndSetter4password(){ - final String password = "root"; - ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); - thirdpartySdncRegisterInfo.setPassword(password); - assertEquals(thirdpartySdncRegisterInfo.getPassword(), password); - } - - @Test - public void getterAndSetter4productName(){ - final String productName = "sdnctest"; - ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); - thirdpartySdncRegisterInfo.setProductName(productName); - assertEquals(thirdpartySdncRegisterInfo.getProductName(), productName); - } - - @Test - public void getterAndSetter4protocol(){ - final String protocol = "root"; - ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); - thirdpartySdncRegisterInfo.setProtocol(protocol); - assertEquals(thirdpartySdncRegisterInfo.getProtocol(), protocol); - } + @Test + public void getterAndSetter4cloudDomain() { + final String thirdpartySdncId = "312erqdfa"; + ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); + thirdpartySdncRegisterInfo.setThirdpartySdncId(thirdpartySdncId); + assertEquals(thirdpartySdncRegisterInfo.getThirdpartySdncId(), thirdpartySdncId); + } + + @Test + public void getterAndSetter4name() { + final String name = "sdnc-test"; + ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); + thirdpartySdncRegisterInfo.setName(name); + assertEquals(thirdpartySdncRegisterInfo.getName(), name); + } + + @Test + public void getterAndSetter4vendor() { + final String vendor = "zte"; + ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); + thirdpartySdncRegisterInfo.setVendor(vendor); + assertEquals(thirdpartySdncRegisterInfo.getVendor(), vendor); + } + + @Test + public void getterAndSetter4version() { + final String version = "v1.0"; + ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); + thirdpartySdncRegisterInfo.setVersion(version); + assertEquals(thirdpartySdncRegisterInfo.getVersion(), version); + } + + @Test + public void getterAndSetter4type() { + final String type = "type-test"; + ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); + thirdpartySdncRegisterInfo.setType(type); + assertEquals(thirdpartySdncRegisterInfo.getType(), type); + } + + @Test + public void getterAndSetter4location() { + final String location = "312erqdfa"; + ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); + thirdpartySdncRegisterInfo.setLocation(location); + assertEquals(thirdpartySdncRegisterInfo.getLocation(), location); + } + + @Test + public void getterAndSetter4url() { + final String url = "http://13.44.22.11:5000"; + ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); + thirdpartySdncRegisterInfo.setUrl(url); + assertEquals(thirdpartySdncRegisterInfo.getUrl(), url); + } + + @Test + public void getterAndSetter4userName() { + final String userName = "root"; + ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); + thirdpartySdncRegisterInfo.setUserName(userName); + assertEquals(thirdpartySdncRegisterInfo.getUserName(), userName); + } + + @Test + public void getterAndSetter4password() { + final String password = "root"; + ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); + thirdpartySdncRegisterInfo.setPassword(password); + assertEquals(thirdpartySdncRegisterInfo.getPassword(), password); + } + + @Test + public void getterAndSetter4productName() { + final String productName = "sdnctest"; + ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); + thirdpartySdncRegisterInfo.setProductName(productName); + assertEquals(thirdpartySdncRegisterInfo.getProductName(), productName); + } + + @Test + public void getterAndSetter4protocol() { + final String protocol = "root"; + ThirdpartySdncRegisterInfo thirdpartySdncRegisterInfo = new ThirdpartySdncRegisterInfo(); + thirdpartySdncRegisterInfo.setProtocol(protocol); + assertEquals(thirdpartySdncRegisterInfo.getProtocol(), protocol); + } }