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 9a96f73..da36728 100644 (file)
@@ -2,10 +2,12 @@
  * ============LICENSE_START=======================================================
  * ONAP : APPC
  * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * 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
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
  * ============LICENSE_END=========================================================
  */
 
 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";
@@ -75,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);
+    }
 }