Added test cases for DME2 Client
[appc.git] / appc-outbound / appc-network-inventory-client / provider / src / main / java / org / onap / appc / instar / utils / InstarClientConstant.java
index 713d2ae..da36728 100644 (file)
@@ -6,6 +6,8 @@
  * ================================================================================
  * Copyright (C) 2017 Amdocs
  * =============================================================================
+ * Modifications Copyright (C) 2019 Ericsson
+ * =============================================================================
  * 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
 
 package org.onap.appc.instar.utils;
 
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.InputStream;
+
 public class InstarClientConstant {
 
     public static final String INPUT_PARAM_RESPONSE_PRIFIX = "responsePrefix";
@@ -74,5 +80,13 @@ public class InstarClientConstant {
     public static final String OUTBOUND_PROPERTIES = "/outbound.properties";
 
     private InstarClientConstant() {}
+    
+    public static String getEnvironmentVariable(String env) {
+      return System.getenv(env);
+    }
+    
+    public static InputStream getInputStream(String file) throws FileNotFoundException {
+      return new FileInputStream(file);
+    }
 }