X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ONAP-REST%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Frest%2Fadapter%2FYAMLParamsTest.java;h=ea8839e198834fc1b6c93bdef1259b407f560e51;hb=e31e46738ca14c18a00773e598df6639154aa1f2;hp=007141f411a816304fa141a8c6cc8b4f8e5d8b6c;hpb=75978c1770c5c88be836531e0c9d02514659af24;p=policy%2Fengine.git diff --git a/ONAP-REST/src/test/java/org/onap/policy/rest/adapter/YAMLParamsTest.java b/ONAP-REST/src/test/java/org/onap/policy/rest/adapter/YAMLParamsTest.java index 007141f41..ea8839e19 100644 --- a/ONAP-REST/src/test/java/org/onap/policy/rest/adapter/YAMLParamsTest.java +++ b/ONAP-REST/src/test/java/org/onap/policy/rest/adapter/YAMLParamsTest.java @@ -26,30 +26,30 @@ import java.util.ArrayList; import org.junit.Test; public class YAMLParamsTest { - - @Test - public void testYAMLParams(){ - YAMLParams yamlParams = new YAMLParams(); - yamlParams.setActor("Test"); - assertTrue("Test".equals(yamlParams.getActor())); - yamlParams.setRecipe("Test"); - assertTrue("Test".equals(yamlParams.getRecipe())); - yamlParams.setClname("Test"); - assertTrue("Test".equals(yamlParams.getClname())); - yamlParams.setGuardActiveEnd("Test"); - assertTrue("Test".equals(yamlParams.getGuardActiveEnd())); - yamlParams.setGuardActiveStart("Test"); - assertTrue("Test".equals(yamlParams.getGuardActiveStart())); - yamlParams.setLimit("Test"); - assertTrue("Test".equals(yamlParams.getLimit())); - yamlParams.setBlackList(new ArrayList<>()); - assertTrue(yamlParams.getBlackList() != null); - yamlParams.setTargets(new ArrayList<>()); - assertTrue(yamlParams.getTargets() != null); - yamlParams.setTimeUnits("Test"); - assertTrue("Test".equals(yamlParams.getTimeUnits())); - yamlParams.setTimeWindow("Test"); - assertTrue("Test".equals(yamlParams.getTimeWindow())); - } + + @Test + public void testYAMLParams(){ + YAMLParams yamlParams = new YAMLParams(); + yamlParams.setActor("Test"); + assertTrue("Test".equals(yamlParams.getActor())); + yamlParams.setRecipe("Test"); + assertTrue("Test".equals(yamlParams.getRecipe())); + yamlParams.setClname("Test"); + assertTrue("Test".equals(yamlParams.getClname())); + yamlParams.setGuardActiveEnd("Test"); + assertTrue("Test".equals(yamlParams.getGuardActiveEnd())); + yamlParams.setGuardActiveStart("Test"); + assertTrue("Test".equals(yamlParams.getGuardActiveStart())); + yamlParams.setLimit("Test"); + assertTrue("Test".equals(yamlParams.getLimit())); + yamlParams.setBlackList(new ArrayList<>()); + assertTrue(yamlParams.getBlackList() != null); + yamlParams.setTargets(new ArrayList<>()); + assertTrue(yamlParams.getTargets() != null); + yamlParams.setTimeUnits("Test"); + assertTrue("Test".equals(yamlParams.getTimeUnits())); + yamlParams.setTimeWindow("Test"); + assertTrue("Test".equals(yamlParams.getTimeWindow())); + } }