예제 #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);
 }