Remove props from ValidationConfigManager 65/106265/3
authorFrancis Toth <francis.toth@yoppworks.com>
Sun, 19 Apr 2020 23:50:10 +0000 (19:50 -0400)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Mon, 20 Apr 2020 16:01:48 +0000 (16:01 +0000)
Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I1c3a845c44722010e8933876e59752cef00937f0
Issue-ID: SDC-2499

asdctool/src/main/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManager.java
asdctool/src/test/java/org/openecomp/sdc/asdctool/impl/validator/config/ValidationConfigManagerTest.java

index 6db0a56..ea0bbf3 100644 (file)
@@ -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
  *
  *
 
 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;
-    }
 }
index 4813cff..efc7dd8 100644 (file)
@@ -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;