@Test public void testTrailingSpaces() { assertEquals(thisPkgProps.getProperty("no_trailing_space_property"), "abc"); assertEquals(thisPkgProps.getProperty("trailing_space_property"), "abc"); assertNull(thisPkgProps.getProperty("no_such_property")); assertEquals(thisPkgProps.getProperty("no_such_property", "abc"), "abc"); assertEquals(thisPkgProps.getProperty("no_such_property", " abc"), "abc"); assertEquals(thisPkgProps.getProperty("no_such_property", "abc "), "abc"); assertEquals(thisPkgProps.getProperty("no_such_property", " abc "), "abc"); }
@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; }