From 4bfd5e7fce67fb812db97158448e160a586ca8b6 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 9 May 2018 11:37:19 +0000 Subject: Make the conditional check shorter Issue-ID: CLI-100 Change-Id: Id725711c37d2804039a0959a50ca018de4bd2361 Signed-off-by: Kanagaraj Manickam k00365106 --- .../src/test/java/org/onap/cli/fw/output/ResultTypeTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'framework/src/test') diff --git a/framework/src/test/java/org/onap/cli/fw/output/ResultTypeTest.java b/framework/src/test/java/org/onap/cli/fw/output/ResultTypeTest.java index a6590b3d..622bdcae 100644 --- a/framework/src/test/java/org/onap/cli/fw/output/ResultTypeTest.java +++ b/framework/src/test/java/org/onap/cli/fw/output/ResultTypeTest.java @@ -24,10 +24,12 @@ import org.junit.Test; public class ResultTypeTest { @Test public void resultTypeGetTest() { - assertTrue(OnapCommandResultType.TABLE.equals(OnapCommandResultType.get("table")) && OnapCommandResultType.CSV.equals(OnapCommandResultType.get("csv")) - && OnapCommandResultType.JSON.equals(OnapCommandResultType.get("json")) && OnapCommandResultType.YAML.equals(OnapCommandResultType.get("yaml")) + assertTrue( + OnapCommandResultType.TABLE.equals(OnapCommandResultType.get("table")) + && OnapCommandResultType.CSV.equals(OnapCommandResultType.get("csv")) + && OnapCommandResultType.JSON.equals(OnapCommandResultType.get("json")) + && OnapCommandResultType.YAML.equals(OnapCommandResultType.get("yaml")) && OnapCommandResultType.TEXT.equals(OnapCommandResultType.get("text"))); - } @Test -- cgit 1.2.3-korg