use of com.att.ajsc.filemonitor.AJSCPropertiesMap in project AJSC by att.
the class AJSCPropertyServiceTest method setUp.
@SuppressWarnings("unchecked")
@Before
public void setUp() {
super.setUp();
temp = new File(System.getProperty("AJSC_CONF_HOME") + File.separator + "etc" + File.separator + "appprops" + File.separator + "temp.properties");
File n = new File(Paths.get("").toAbsolutePath().toString() + File.separator + "src" + File.separator + "test" + File.separator + "resources" + File.separator + "appprops");
PrintWriter p;
try {
p = new PrintWriter(temp);
p.println("sfm0=/opt/app/node");
p.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
APService = new AJSCPropertyService();
AJSCPropertiesMap map = new AJSCPropertiesMap();
APService.setFilePropertiesMap(map);
try {
APService.init();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Aggregations