This commit is contained in:
zyyang 2021-01-12 14:17:41 +08:00
parent 20cd227e76
commit b2afe151f3
1 changed files with 9 additions and 6 deletions

View File

@ -50,24 +50,27 @@ public class TSDBDatabaseMetaDataTest {
@Test @Test
public void getURL() throws SQLException { public void getURL() throws SQLException {
String url = metaData.getURL(); Assert.assertEquals("jdbc:TAOS://localhost:6030/?user=root&password=taosdata", metaData.getURL());
System.out.println(url);
} }
@Test @Test
public void getUserName() { public void getUserName() throws SQLException {
Assert.assertEquals("root", metaData.getUserName());
} }
@Test @Test
public void isReadOnly() { public void isReadOnly() throws SQLException {
Assert.assertFalse(metaData.isReadOnly());
} }
@Test @Test
public void nullsAreSortedHigh() { public void nullsAreSortedHigh() throws SQLException {
Assert.assertFalse(metaData.nullsAreSortedHigh());
} }
@Test @Test
public void nullsAreSortedLow() { public void nullsAreSortedLow() throws SQLException {
Assert.assertTrue(metaData.nullsAreSortedLow());
} }
@Test @Test