public class TableNameConfigTest {
@Test
public void testGetSchemaName() {
DefaultTableNameConfig config = new DefaultTableNameConfig();
ConfigResource resource = new ConfigResource();
resource.setGlobal(TableNameConfigTest.class.getClassLoader().getResource(
"table.properties"));
config.setResource(resource);
Assert.assertEquals("security_online", config
.getSchema("org.beangle.security.online.model"));
Assert.assertEquals("sys_", config.getPrefix("org.beangle.security"));
}