You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by do...@apache.org on 2019/04/19 14:34:46 UTC
[incubator-iotdb] branch fix_jira_issue_80 updated: format code
This is an automated email from the ASF dual-hosted git repository.
dope pushed a commit to branch fix_jira_issue_80
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/fix_jira_issue_80 by this push:
new a0988ac format code
a0988ac is described below
commit a0988aceacf5934e79c02d7a4be1d1cc8355c93c
Author: MyXOF <xu...@163.com>
AuthorDate: Fri Apr 19 22:34:31 2019 +0800
format code
---
.../org/apache/iotdb/cli/tool/ImportCsvTestIT.java | 86 +++++++++++-----------
1 file changed, 43 insertions(+), 43 deletions(-)
diff --git a/iotdb-cli/src/test/java/org/apache/iotdb/cli/tool/ImportCsvTestIT.java b/iotdb-cli/src/test/java/org/apache/iotdb/cli/tool/ImportCsvTestIT.java
index c849f05..13b573f 100644
--- a/iotdb-cli/src/test/java/org/apache/iotdb/cli/tool/ImportCsvTestIT.java
+++ b/iotdb-cli/src/test/java/org/apache/iotdb/cli/tool/ImportCsvTestIT.java
@@ -27,51 +27,51 @@ import org.junit.Test;
public class ImportCsvTestIT extends AbstractScript {
- @Before
- public void setUp() throws Exception {
- }
+ @Before
+ public void setUp() throws Exception {
+ }
- @After
- public void tearDown() throws Exception {
- }
+ @After
+ public void tearDown() throws Exception {
+ }
- @Test
- public void test() throws IOException{
- String os = System.getProperty("os.name").toLowerCase();
- if (os.startsWith("windows")) {
- testOnWindows();
- } else {
- testOnUnix();
- }
- }
+ @Test
+ public void test() throws IOException {
+ String os = System.getProperty("os.name").toLowerCase();
+ if (os.startsWith("windows")) {
+ testOnWindows();
+ } else {
+ testOnUnix();
+ }
+ }
- @Override
- protected void testOnWindows() throws IOException {
- final String[] output = {"````````````````````````````````````````````````",
- "Starting IoTDB Client Import Script",
- "````````````````````````````````````````````````",
- "Encounter an error when importing data, error is: Connection Error, please check whether "
- + "the network is available or the server has started."};
- String dir = getCurrentPath("cmd.exe", "/c", "echo %cd%");
- ProcessBuilder builder = new ProcessBuilder("cmd.exe", "/c",
- dir + File.separator + "cli" + File.separator + "bin" + File.separator + "import-csv.bat",
- "-h", "127.0.0.1", "-p", "6668", "-u", "root", "-pw", "root", "-f", "./");
- testOutput(builder, output);
- }
+ @Override
+ protected void testOnWindows() throws IOException {
+ final String[] output = {"````````````````````````````````````````````````",
+ "Starting IoTDB Client Import Script",
+ "````````````````````````````````````````````````",
+ "Encounter an error when importing data, error is: Connection Error, please check whether "
+ + "the network is available or the server has started."};
+ String dir = getCurrentPath("cmd.exe", "/c", "echo %cd%");
+ ProcessBuilder builder = new ProcessBuilder("cmd.exe", "/c",
+ dir + File.separator + "cli" + File.separator + "bin" + File.separator + "import-csv.bat",
+ "-h", "127.0.0.1", "-p", "6668", "-u", "root", "-pw", "root", "-f", "./");
+ testOutput(builder, output);
+ }
- @Override
- protected void testOnUnix() throws IOException {
- final String[] output = {"------------------------------------------",
- "Starting IoTDB Client Import Script",
- "------------------------------------------",
- "Encounter an error when importing data, error is: Connection Error, please check whether "
- + "the network is available or the server has started."};
- String dir = getCurrentPath("pwd");
- System.out.println(dir);
- ProcessBuilder builder = new ProcessBuilder("sh",
- dir + File.separator + "cli" + File.separator + "bin" + File.separator + "import-csv.sh",
- "-h",
- "127.0.0.1", "-p", "6668", "-u", "root", "-pw", "root", "-f", "./");
- testOutput(builder, output);
- }
+ @Override
+ protected void testOnUnix() throws IOException {
+ final String[] output = {"------------------------------------------",
+ "Starting IoTDB Client Import Script",
+ "------------------------------------------",
+ "Encounter an error when importing data, error is: Connection Error, please check whether "
+ + "the network is available or the server has started."};
+ String dir = getCurrentPath("pwd");
+ System.out.println(dir);
+ ProcessBuilder builder = new ProcessBuilder("sh",
+ dir + File.separator + "cli" + File.separator + "bin" + File.separator + "import-csv.sh",
+ "-h",
+ "127.0.0.1", "-p", "6668", "-u", "root", "-pw", "root", "-f", "./");
+ testOutput(builder, output);
+ }
}