use of org.dbflute.logic.jdbc.urlanalyzer.DfUrlAnalyzer in project dbflute-core by dbflute.
the class DfUrlAnalyzerSQLServerTest method test_extractCatalog_caseInsensitive.
public void test_extractCatalog_caseInsensitive() throws Exception {
// ## Arrange ##
DfUrlAnalyzer analyzer = createTarget("jdbc:sqlserver://localhost:1433;databaseName=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_basic.
public void test_extractCatalog_basic() throws Exception {
// ## Arrange ##
DfUrlAnalyzer analyzer = createTarget("jdbc:sqlserver://localhost:1433;DatabaseName=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 DfUrlAnalyzerSybaseTest method test_extractCatalog_basic.
public void test_extractCatalog_basic() throws Exception {
// ## Arrange ##
DfUrlAnalyzer analyzer = createTarget("jdbc:sybase:Tds:localhost:2638/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 DfUrlAnalyzerSybaseTest method test_extractCatalog_option_ampersand.
public void test_extractCatalog_option_ampersand() throws Exception {
// ## Arrange ##
DfUrlAnalyzer analyzer = createTarget("jdbc:sybase:Tds:localhost:2638/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 DfUrlAnalyzerPostgreSQLTest method test_extractCatalog_option_question.
public void test_extractCatalog_option_question() throws Exception {
// ## Arrange ##
DfUrlAnalyzer analyzer = createTarget("jdbc:postgresql://localhost:5432/exampledb?charSet=UTF-8");
// ## Act ##
String catalog = analyzer.extractCatalog();
// ## Assert ##
assertEquals("exampledb", catalog);
}
Aggregations