diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-05-09 11:37:19 +0000 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-05-09 11:37:19 +0000 |
commit | 4bfd5e7fce67fb812db97158448e160a586ca8b6 (patch) | |
tree | 53c4dfe1e5baba67f632bcb931f6a4cdcda9d694 /framework/src/test/java | |
parent | afacc8965fa57b6710905ebf543c9f023a2ed348 (diff) |
Make the conditional check shorter
Issue-ID: CLI-100
Change-Id: Id725711c37d2804039a0959a50ca018de4bd2361
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/test/java')
-rw-r--r-- | framework/src/test/java/org/onap/cli/fw/output/ResultTypeTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
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 |