use of org.dbflute.logic.jdbc.urlanalyzer.DfUrlAnalyzer in project dbflute-core by dbflute.
the class DfUrlAnalyzerH2Test method test_extractCatalog_basic.
public void test_extractCatalog_basic() throws Exception {
// ## Arrange ##
DfUrlAnalyzer analyzer = createTarget("jdbc:h2:file:../src/main/resources/ponpon/exampledb");
// ## Act ##
String catalog = analyzer.extractCatalog();
// ## Assert ##
assertEquals("exampledb", catalog);
}
use of org.dbflute.logic.jdbc.urlanalyzer.DfUrlAnalyzer in project dbflute-core by dbflute.
the class DfUrlAnalyzerMySQLTest method test_extractCatalog_basic.
public void test_extractCatalog_basic() throws Exception {
// ## Arrange ##
DfUrlAnalyzer analyzer = createTarget("jdbc:mysql://localhost:43306/exampledb");
// ## Act ##
String catalog = analyzer.extractCatalog();
// ## Assert ##
assertEquals("exampledb", catalog);
}
use of org.dbflute.logic.jdbc.urlanalyzer.DfUrlAnalyzer in project dbflute-core by dbflute.
the class DfUrlAnalyzerMySQLTest method test_extractCatalog_option_ampersand.
public void test_extractCatalog_option_ampersand() throws Exception {
// ## Arrange ##
DfUrlAnalyzer analyzer = createTarget("jdbc:mysql://localhost:43306/exampledb&charSet=UTF-8");
// ## Act ##
String catalog = analyzer.extractCatalog();
// ## Assert ##
assertEquals("exampledb", catalog);
}
use of org.dbflute.logic.jdbc.urlanalyzer.DfUrlAnalyzer in project dbflute-core by dbflute.
the class DfUrlAnalyzerMSAccessTest method test_extractCatalog.
public void test_extractCatalog() throws Exception {
// ## Arrange ##
DfUrlAnalyzer analyzer = createTarget("jdbc:odbc:exampledb");
// ## Act ##
String catalog = analyzer.extractCatalog();
// ## Assert ##
assertEquals("exampledb", catalog);
}
use of org.dbflute.logic.jdbc.urlanalyzer.DfUrlAnalyzer in project dbflute-core by dbflute.
the class DfUrlAnalyzerSQLServerTest method test_extractCatalog_option.
public void test_extractCatalog_option() throws Exception {
// ## Arrange ##
DfUrlAnalyzer analyzer = createTarget("jdbc:sqlserver://localhost:1433;DatabaseName=exampledb;charSet=UTF-8");
// ## Act ##
String catalog = analyzer.extractCatalog();
// ## Assert ##
assertEquals("exampledb", catalog);
}
Aggregations