Пример #1
0
 @AfterClass
 public static void tearDown() throws IOException {
   out.close();
   err.close();
   if (tajoCli != null) {
     tajoCli.close();
   }
 }
Пример #2
0
  public void assertScriptFailure(String cmd) throws Exception {
    Path resultFile = getResultFile(getMethodName() + ".result");
    String expected = FileUtil.readTextFile(new File(resultFile.toUri()));

    tajoCli.executeScript(cmd);
    String consoleResult = new String(err.toByteArray());
    assertEquals(expected, consoleResult);
  }
Пример #3
0
 public void assertScriptFailure(String cmd, String expectedMsg) throws Exception {
   tajoCli.executeScript(cmd);
   String consoleResult = new String(err.toByteArray());
   assertEquals(expectedMsg, consoleResult);
 }
Пример #4
0
 private static void setVar(TajoCli cli, ConfigKey key, String val) throws Exception {
   cli.executeMetaCommand("\\set " + key.keyname() + " " + val);
 }