@Test public void defaultPropertyTest() throws Exception { String value = null; value = thisPkgProps.getProperty("xxx", "fallbackValue"); assertEquals(value, "fallbackValue"); value = thisPkgProps.getProperty("xxx"); Assert.assertNull(value); }
@Override public String getProperty(String key) { String value = System.getProperty(key); if (value != null) { return trim(value); } else { return trim(super.getProperty(key)); } }
MCTProperties extends Properties { @Override public String getProperty(String key) { String value = System.getProperty(key); if (value != null) { return trim(value); } else { return trim(super.getProperty(key)); } } }
MCTProperties extends Properties { @Override public String getProperty(String key) { String value = System.getProperty(key); if (value != null) { return trim(value); } else { return trim(super.getProperty(key)); } } MCTProperties(String propertyFileName);  MCTProperties();  MCTProperties(Class<?> c); }
MCTProperties extends Properties { @Override public String getProperty(String key) { String value = System.getProperty(key); if (value != null) { return trim(value); } else { return trim(super.getProperty(key)); } } MCTProperties(String propertyFileName);  MCTProperties();  MCTProperties(Class<?> c); void load(InputStream is); @Override String getProperty(String key); @Override String getProperty(String key, String defaultValue); }
MCTProperties extends Properties { @Override public String getProperty(String key) { String value = System.getProperty(key); if (value != null) { return trim(value); } else { return trim(super.getProperty(key)); } } MCTProperties(String propertyFileName);  MCTProperties();  MCTProperties(Class<?> c); void load(InputStream is); @Override String getProperty(String key); @Override String getProperty(String key, String defaultValue); static final MCTProperties DEFAULT_MCT_PROPERTIES; }