From f4b355eb2aa690ef37a66d76f6849a8828af0489 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Tue, 27 Nov 2018 17:12:28 +0530 Subject: added test case to TestDataTool.java to increase code coverage Issue-ID: APPC-1086 Change-Id: If4e5bacbfe63bca2d0859f2f86623044c6cba3a2 Signed-off-by: Sandeep J --- .../org/onap/sdnc/config/generator/tool/TestDataTool.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'appc-config/appc-config-generator') diff --git a/appc-config/appc-config-generator/provider/src/test/java/org/onap/sdnc/config/generator/tool/TestDataTool.java b/appc-config/appc-config-generator/provider/src/test/java/org/onap/sdnc/config/generator/tool/TestDataTool.java index b9d96c832..3d7b7fb84 100644 --- a/appc-config/appc-config-generator/provider/src/test/java/org/onap/sdnc/config/generator/tool/TestDataTool.java +++ b/appc-config/appc-config-generator/provider/src/test/java/org/onap/sdnc/config/generator/tool/TestDataTool.java @@ -6,7 +6,7 @@ * ================================================================================ * Copyright (C) 2017 Amdocs * ============================================================================= - * Modification Copyright (C) 2018 IBM. + * Modifications Copyright (C) 2018 IBM. * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -156,9 +156,16 @@ public class TestDataTool { } @Test - public void testCheckDataXml() + public void testCheckDataForInvalidXml() { String data=""; assertEquals(ConfigGeneratorConstant.DATA_TYPE_TEXT,CheckDataTool.checkData(data)); } + + @Test + public void testCheckDataForValidXml() + { + String data=""; + assertEquals(ConfigGeneratorConstant.DATA_TYPE_XML,CheckDataTool.checkData(data)); + } } -- cgit 1.2.3-korg