use of net.morimekta.test.providence.config.Database in project providence by morimekta.
the class ProvidenceConfigTest method testGetConfig.
@Test
public void testGetConfig() throws IOException {
File f_stage_db = copyResourceTo("/net/morimekta/providence/config/files/stage_db.cfg", temp.getRoot());
ProvidenceConfig config = new ProvidenceConfig(registry, null, true);
Database stage_db = config.getConfig(f_stage_db);
assertEquals("{\n" + " uri = \"jdbc:h2:localhost:mem\"\n" + " driver = \"org.h2.Driver\"\n" + " credentials = {\n" + " username = \"myuser\"\n" + " password = \"MyP4s5w0rd\"\n" + " }\n" + "}", debugString(stage_db));
}
Aggregations