Improve coverage in flow/controller/node
[appc.git] / appc-config / appc-flow-controller / provider / src / main / java / org / onap / appc / flow / controller / node / PropertiesLoader.java
1 package org.onap.appc.flow.controller.node;
2
3 import java.io.FileInputStream;
4 import java.io.IOException;
5 import java.io.InputStream;
6 import java.util.Properties;
7
8 class PropertiesLoader {
9
10   private PropertiesLoader() {}
11
12   static Properties load(String path) throws IOException {
13     Properties props = new Properties();
14     try (InputStream propStream = new FileInputStream(path)) {
15       props.load(propStream);
16     }
17     return props;
18   }
19
20 }