@Test public void setProperty() { String a = PropertyHolder.getProperty("test.none"); Assert.isNull(a, ErrorCodeDef.SYSTEM_ERROR_10001); PropertyHolder.setProperty("test.none", "你好"); a = PropertyHolder.getProperty("test.none"); Assert.equals(a, "你好", ErrorCodeDef.SYSTEM_ERROR_10001); }
public static void setProperty(final String name, final String value) { PROPERTIES.put(name, value); }
PropertyHolder { public static void setProperty(final String name, final String value) { PROPERTIES.put(name, value); } }
PropertyHolder { public static void setProperty(final String name, final String value) { PROPERTIES.put(name, value); }  }
PropertyHolder { public static void setProperty(final String name, final String value) { PROPERTIES.put(name, value); }  static Map<String, String> getProperties(); static Boolean getBooleanProperty(final String name); static Boolean getBooleanProperty(final String name, final Boolean defaultValue); static Integer getIntProperty(final String name); static Integer getIntProperty(final String name, final Integer defaultValue); static Long getLongProperty(final String name); static Long getLongProperty(final String name, final Long defaultValue); static String getProperty(final String name); static String getProperty(final String name, final String defaultValue); static void setProperty(final String name, final String value); static String getErrorMessage(final int code, final Object... params); static String getProjectName(); static String getVersion(); }
PropertyHolder { public static void setProperty(final String name, final String value) { PROPERTIES.put(name, value); }  static Map<String, String> getProperties(); static Boolean getBooleanProperty(final String name); static Boolean getBooleanProperty(final String name, final Boolean defaultValue); static Integer getIntProperty(final String name); static Integer getIntProperty(final String name, final Integer defaultValue); static Long getLongProperty(final String name); static Long getLongProperty(final String name, final Long defaultValue); static String getProperty(final String name); static String getProperty(final String name, final String defaultValue); static void setProperty(final String name, final String value); static String getErrorMessage(final int code, final Object... params); static String getProjectName(); static String getVersion();  }