aboutsummaryrefslogtreecommitdiffstats
path: root/asdctool/src
diff options
context:
space:
mode:
authorFrancis Toth <francis.toth@yoppworks.com>2020-04-19 19:50:10 -0400
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-04-20 16:01:48 +0000
commitc0b8bd2503b08f157f853683dbc993dc12603d09 (patch)
tree04392598075c7fb4b37013c9b286dd983ba2685c /asdctool/src
parente45d69b7da15226f88a8821a0d5ef55757e4a98a (diff)
Remove props from ValidationConfigManager
Signed-off-by: Francis Toth <francis.toth@yoppworks.com> Change-Id: I1c3a845c44722010e8933876e59752cef00937f0 Issue-ID: SDC-2499
Diffstat (limited to 'asdctool/src')
-rw-r--r--asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManager.java31
-rw-r--r--asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java17
2 files changed, 1 insertions, 47 deletions
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
@@ -57,23 +57,6 @@ public class ValidationConfigManagerTest {
}
@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;