public class TestTableName extends BaseTestCase {
@Test
public void test() {
TableName t = new TableName("a");
Assert.assertEquals("a", t.getName());
Assert.assertNull(t.getCatalog());
Assert.assertNull(t.getSchema());
t = new TableName("b.a");
Assert.assertEquals("a", t.getName());
Assert.assertEquals("b", t.getSchema());
Assert.assertNull(t.getCatalog());
t = new TableName("c.b.a");
Assert.assertEquals("a", t.getName());
Assert.assertEquals("b", t.getSchema());
Assert.assertEquals("c", t.getCatalog());
// try {
// TableName t2 = new TableName("d.c.b.a");
// Assert.assertNotNull(t2);
// Assert.assertTrue(false);