Пример #1
0
 @Test
 public void testTableOnly() {
   String answer = StringUtility.composeFullyQualifiedTableName(null, null, "table", '.');
   assertEquals("table", answer);
 }
Пример #2
0
 @Test
 public void testNoSchema() {
   String answer = StringUtility.composeFullyQualifiedTableName("catalog", null, "table", '.');
   assertEquals("catalog..table", answer);
 }
Пример #3
0
 @Test
 public void testAllPresent() {
   String answer = StringUtility.composeFullyQualifiedTableName("catalog", "schema", "table", '.');
   assertEquals("catalog.schema.table", answer);
 }
Пример #4
0
 @Test
 public void testNoCatalog() {
   String answer = StringUtility.composeFullyQualifiedTableName(null, "schema", "table", '.');
   assertEquals("schema.table", answer);
 }