properties.put("x", "1");
properties.put("x.s", "2");
properties.put("y", "3");
PropertyDataSourceFactory factory = new PropertyDataSourceFactory() {
@Override
protected String getProperty(String key) {
return properties.get(key);
}
};
assertEquals("2", factory.getProperty("x", ".s"));
assertEquals("1", factory.getProperty("x", ".t"));
assertEquals("3", factory.getProperty("y", ".s"));
assertNull(factory.getProperty("z", ".u"));
}