aboutsummaryrefslogtreecommitdiffstats
path: root/validate/sample-yaml-generator/src/test
diff options
context:
space:
mode:
authorpriyanka.akhade <priyanka.akhade@huawei.com>2020-05-05 09:36:31 +0000
committerpriyanka.akhade <priyanka.akhade@huawei.com>2020-05-06 09:54:31 +0000
commit43daaf01499ac80d52187507e50f6ce7c5ce6026 (patch)
tree942a431f8d2e18de7394549a7c4f0ea124b06da4 /validate/sample-yaml-generator/src/test
parent19684879f5742847e2e903d6c039de7e13fab6e3 (diff)
sonar bug fix- conditional operation returns the same value whether the condition is "true" or "false"
Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Issue-ID: CLI-270 Change-Id: I500b47559bba7b8cf366f70357041c4c516b8f90
Diffstat (limited to 'validate/sample-yaml-generator/src/test')
-rw-r--r--validate/sample-yaml-generator/src/test/java/org/onap/cli/sample/yaml/SampleYamlGeneratorTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/validate/sample-yaml-generator/src/test/java/org/onap/cli/sample/yaml/SampleYamlGeneratorTest.java b/validate/sample-yaml-generator/src/test/java/org/onap/cli/sample/yaml/SampleYamlGeneratorTest.java
index cd395833..dc99df02 100644
--- a/validate/sample-yaml-generator/src/test/java/org/onap/cli/sample/yaml/SampleYamlGeneratorTest.java
+++ b/validate/sample-yaml-generator/src/test/java/org/onap/cli/sample/yaml/SampleYamlGeneratorTest.java
@@ -28,5 +28,11 @@ public class SampleYamlGeneratorTest {
SampleYamlGenerator.generateSampleYaml("testcmd", Arrays.asList("-a", "argument"),
"+--------+\n+val +\n+argument+", "test-version-1.0", "target/test.yaml", false, "sample1");
}
+ @Test
+ public void testGenerateSampleYamlForWriteMultilineKeyValue() throws IOException {
+ SampleYamlGenerator.generateSampleYaml("testcmd-multiline", Arrays.asList("-a", "argument"),
+ "+--------+\n+testval1 +\n+argument1+\n+testval2 +\n+argument2+", "test-version-1.0",
+ "target/test-multiline.yaml", true, "sample1");
+ }
}