From: Francis Toth Date: Sun, 19 Apr 2020 23:50:10 +0000 (-0400) Subject: Remove props from ValidationConfigManager X-Git-Tag: 1.7.0~219 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=c0b8bd2503b08f157f853683dbc993dc12603d09;p=sdc.git Remove props from ValidationConfigManager Signed-off-by: Francis Toth Change-Id: I1c3a845c44722010e8933876e59752cef00937f0 Issue-ID: SDC-2499 --- diff --git a/asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManager.java b/asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManager.java index 6db0a56da6..ea0bbf33a9 100644 --- a/asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManager.java +++ b/asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManager.java @@ -8,7 +8,7 @@ * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 * * @@ -24,22 +24,8 @@ package org.openecomp.sdc.asdctool.impl.validator.config; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.Properties; - -/** - * Created by chaya on 7/4/2017. - */ public class ValidationConfigManager { - private static Logger log = LoggerFactory.getLogger(ValidationConfigManager.class); - - private static Properties prop = new Properties(); private static String outputFullFilePath; private static String outputFilePath; @@ -69,19 +55,4 @@ public class ValidationConfigManager { } private static String csvReportFilePath = "summary.csv"; - - public static Properties setValidationConfiguration(String path) { - InputStream input; - try { - input = new FileInputStream(path); - prop.load(input); - } catch (IOException ex) { - log.info("FileInputStream failed", ex); - } - return prop; - } - - public static Properties getValidationConfiguration() { - return prop; - } } diff --git a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java index 4813cff764..efc7dd82a8 100644 --- a/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java +++ b/asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java @@ -56,23 +56,6 @@ public class ValidationConfigManagerTest { ValidationConfigManager.setCsvReportFilePath(outputPath); } - @Test - public void testSetValidationConfiguration() { - String path = ""; - Properties result; - - // default test - result = ValidationConfigManager.setValidationConfiguration(path); - } - - @Test - public void testGetValidationConfiguration() { - Properties result; - - // default test - result = ValidationConfigManager.getValidationConfiguration(); - } - @Test public void testGetOutputFullFilePath() throws Exception { String result;