@Test public void load() { Prop.load(); }
public static Properties load() { if (properties == null) { properties = new Properties(); final File file = FileUtil.file("myfavs.properties"); if (file.exists() == false) { throw new DBException("Can not found file named myfavs.properties in the class path."); } try { properties.load(new FileInputStream(file)); } catch (IOException e) { throw new DBException(e); } } return properties; }
Prop { public static Properties load() { if (properties == null) { properties = new Properties(); final File file = FileUtil.file("myfavs.properties"); if (file.exists() == false) { throw new DBException("Can not found file named myfavs.properties in the class path."); } try { properties.load(new FileInputStream(file)); } catch (IOException e) { throw new DBException(e); } } return properties; } }
Prop { public static Properties load() { if (properties == null) { properties = new Properties(); final File file = FileUtil.file("myfavs.properties"); if (file.exists() == false) { throw new DBException("Can not found file named myfavs.properties in the class path."); } try { properties.load(new FileInputStream(file)); } catch (IOException e) { throw new DBException(e); } } return properties; }  }
Prop { public static Properties load() { if (properties == null) { properties = new Properties(); final File file = FileUtil.file("myfavs.properties"); if (file.exists() == false) { throw new DBException("Can not found file named myfavs.properties in the class path."); } try { properties.load(new FileInputStream(file)); } catch (IOException e) { throw new DBException(e); } } return properties; }  static Properties load(); static String getStr(String key); static Integer getInt(String key); static Boolean getBoolean(String key); }
Prop { public static Properties load() { if (properties == null) { properties = new Properties(); final File file = FileUtil.file("myfavs.properties"); if (file.exists() == false) { throw new DBException("Can not found file named myfavs.properties in the class path."); } try { properties.load(new FileInputStream(file)); } catch (IOException e) { throw new DBException(e); } } return properties; }  static Properties load(); static String getStr(String key); static Integer getInt(String key); static Boolean getBoolean(String key);  }