diff options
Diffstat (limited to 'mso-catalog-db/src/test/java/org/onap/so/db/catalog/ControllerSelectionReferenceTest.java')
-rw-r--r-- | mso-catalog-db/src/test/java/org/onap/so/db/catalog/ControllerSelectionReferenceTest.java | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/mso-catalog-db/src/test/java/org/onap/so/db/catalog/ControllerSelectionReferenceTest.java b/mso-catalog-db/src/test/java/org/onap/so/db/catalog/ControllerSelectionReferenceTest.java index 489f8a0a3d..f3670649ae 100644 --- a/mso-catalog-db/src/test/java/org/onap/so/db/catalog/ControllerSelectionReferenceTest.java +++ b/mso-catalog-db/src/test/java/org/onap/so/db/catalog/ControllerSelectionReferenceTest.java @@ -22,7 +22,6 @@ package org.onap.so.db.catalog; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; - import org.junit.Test; import org.junit.runner.RunWith; import org.onap.so.db.catalog.beans.ControllerSelectionReference; @@ -37,32 +36,32 @@ import org.springframework.test.context.junit4.SpringRunner; @ActiveProfiles("test") public class ControllerSelectionReferenceTest { - @Autowired - private ControllerSelectionReferenceRepository controllerSelectionReferenceRepository; - - @Test - public void Find_ControllerNameByVnfTypeAndAction_Test() { - String vnfType = "vLoadBalancerMS/vLoadBalancerMS 0"; - String controllerName = "APPC"; - String actionCategory = "ConfigScaleOut"; - ControllerSelectionReference controller = - controllerSelectionReferenceRepository.findControllerSelectionReferenceByVnfTypeAndActionCategory(vnfType, actionCategory); - assertEquals(vnfType, controller.getVnfType()); - assertEquals(controllerName, controller.getControllerName()); - assertEquals(actionCategory, controller.getActionCategory()); - } - - @Test - public final void controllerDataTest() { - ControllerSelectionReference controller = new ControllerSelectionReference(); + @Autowired + private ControllerSelectionReferenceRepository controllerSelectionReferenceRepository; + + @Test + public void Find_ControllerNameByVnfTypeAndAction_Test() { + String vnfType = "vLoadBalancerMS/vLoadBalancerMS 0"; + String controllerName = "APPC"; + String actionCategory = "ConfigScaleOut"; + ControllerSelectionReference controller = controllerSelectionReferenceRepository + .findControllerSelectionReferenceByVnfTypeAndActionCategory(vnfType, actionCategory); + assertEquals(vnfType, controller.getVnfType()); + assertEquals(controllerName, controller.getControllerName()); + assertEquals(actionCategory, controller.getActionCategory()); + } + + @Test + public final void controllerDataTest() { + ControllerSelectionReference controller = new ControllerSelectionReference(); - controller.setVnfType("vnfType"); - assertTrue(controller.getVnfType().equalsIgnoreCase("vnfType")); + controller.setVnfType("vnfType"); + assertTrue(controller.getVnfType().equalsIgnoreCase("vnfType")); - controller.setControllerName("controllerName"); - assertTrue(controller.getControllerName().equalsIgnoreCase("controllerName")); + controller.setControllerName("controllerName"); + assertTrue(controller.getControllerName().equalsIgnoreCase("controllerName")); - controller.setActionCategory("actionCategory"); - assertTrue(controller.getActionCategory().equalsIgnoreCase("actionCategory")); - } + controller.setActionCategory("actionCategory"); + assertTrue(controller.getActionCategory().equalsIgnoreCase("actionCategory")); + } } |