Exemplo n.º 1
0
 @Test
 public void testTableOnly() {
   String answer = StringUtility.composeFullyQualifiedTableName(null, null, "table", '.');
   assertEquals("table", answer);
 }
Exemplo n.º 2
0
 @Test
 public void testNoSchema() {
   String answer = StringUtility.composeFullyQualifiedTableName("catalog", null, "table", '.');
   assertEquals("catalog..table", answer);
 }
Exemplo n.º 3
0
 @Test
 public void testAllPresent() {
   String answer = StringUtility.composeFullyQualifiedTableName("catalog", "schema", "table", '.');
   assertEquals("catalog.schema.table", answer);
 }
Exemplo n.º 4
0
 @Test
 public void testNoCatalog() {
   String answer = StringUtility.composeFullyQualifiedTableName(null, "schema", "table", '.');
   assertEquals("schema.table", answer);
 }