@Test public void testTrim() { assertNull(MCTProperties.trim(null)); assertEquals(MCTProperties.trim(""), ""); assertEquals(MCTProperties.trim("abc"), "abc"); assertEquals(MCTProperties.trim(" abc"), "abc"); assertEquals(MCTProperties.trim("abc "), "abc"); assertEquals(MCTProperties.trim(" abc "), "abc"); }
protected static String trim(String s) { if (s == null) { return null; } else { return s.trim(); } }
MCTProperties extends Properties { protected static String trim(String s) { if (s == null) { return null; } else { return s.trim(); } } }
MCTProperties extends Properties { protected static String trim(String s) { if (s == null) { return null; } else { return s.trim(); } } MCTProperties(String propertyFileName);  MCTProperties();  MCTProperties(Class<?> c); }
MCTProperties extends Properties { protected static String trim(String s) { if (s == null) { return null; } else { return s.trim(); } } 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 { protected static String trim(String s) { if (s == null) { return null; } else { return s.trim(); } } 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; }