From 344a44f3bb0762e5bc32a4ef760fb3b42ef4688d Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Wed, 8 Aug 2018 17:50:54 +0530 Subject: added test case to testDataTool.java to increase code coverage Issue-ID: APPC-1086 Change-Id: If736ff2d7cd30f6762ecb6bdc267b4a7c7f51c07 Signed-off-by: Sandeep J --- .../java/org/onap/sdnc/config/generator/tool/TestDataTool.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'appc-config/appc-config-generator/provider/src') 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 aefb7a4b3..b9d96c832 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,6 +6,8 @@ * ================================================================================ * Copyright (C) 2017 Amdocs * ============================================================================= + * Modification 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. * You may obtain a copy of the License at @@ -34,6 +36,7 @@ import org.mockito.Mock; import org.onap.sdnc.config.generator.ConfigGeneratorConstant; import org.onap.sdnc.config.generator.pattern.TestPatternNode; import org.powermock.reflect.Whitebox; +import static org.junit.Assert.assertEquals; public class TestDataTool { @@ -151,4 +154,11 @@ public class TestDataTool { String line = "2017-08-20T17:40:23.100361+00:00"; Whitebox.invokeMethod(logParserTool, "checkDateTime", line); } + + @Test + public void testCheckDataXml() + { + String data=""; + assertEquals(ConfigGeneratorConstant.DATA_TYPE_TEXT,CheckDataTool.checkData(data)); + } } -- cgit 1.2.3-korg