提交 d8dca059 编写于 作者: B Boris

update test

上级 c4659ad0
......@@ -48,12 +48,11 @@ public class MonitorTool {
private static String url;
private static final String LINE = "---- ";
private static final String DEFAULT_PASSWORD = "root";
public static void main(String[] args)
throws ParseException, IoTDBConnectionException, IOException, StatementExecutionException {
int port = 6667;
String password = null;
String password = "root";
Options options = new Options();
Option optHelp = new Option("help", "help", false, "print help message");
optHelp.setRequired(false);
......@@ -83,8 +82,6 @@ public class MonitorTool {
}
if(commandLine.hasOption("pw")) {
password = commandLine.getOptionValue("pw");
} else {
password = DEFAULT_PASSWORD;
}
Session session = new Session("127.0.0.1", port, "root", password);
session.open();
......
......@@ -136,7 +136,5 @@ public class ListDataSetTest {
.processQuery(plan, EnvironmentUtils.TEST_QUERY_CONTEXT);
Assert.assertTrue(dataSet instanceof ListDataSet);
Assert.assertEquals("[key, value]",dataSet.getPaths().toString());
RowRecord record = dataSet.next();
Assert.assertEquals("0\treadonly\tfalse", record.toString());
}
}
......@@ -142,10 +142,6 @@ public class SingleDataSetTest {
.processQuery(plan, EnvironmentUtils.TEST_QUERY_CONTEXT);
Assert.assertTrue(dataSet instanceof SingleDataSet);
Assert.assertEquals("[count]", dataSet.getPaths().toString());
while (dataSet.hasNext()) {
RowRecord record = dataSet.next();
Assert.assertEquals("0\t0", record.toString());
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册