@Ignore @Test public void testPost() throws Exception { byte[] queryResult = FileUtils.readFile(QUERY_RESULT); if (queryResult == null) throw new RuntimeException(String.format("Cannot read content from %s!", QUERY_RESULT)); String except = new String(queryResult); byte[] queryJson = FileUtils.readFile(QUERY); if (queryJson == null) throw new RuntimeException(String.format("Cannot read content from %s!", QUERY)); String result = DruidRestUtils.post(QUERY_URL, new String(queryJson)); assertEquals(StrUtils.compression(except), StrUtils.compression(result)); }
public static String post(String url, String json) { return post(url, json, null); }
DruidRestUtils { public static String post(String url, String json) { return post(url, json, null); } }
DruidRestUtils { public static String post(String url, String json) { return post(url, json, null); } DruidRestUtils(); }
DruidRestUtils { public static String post(String url, String json) { return post(url, json, null); } DruidRestUtils(); static String post(String url, String json); static String post(String url, String json, Long timeOut); static String post(String url, String json, Long timeOut, TimeUnit timeUnit, String charset); }
DruidRestUtils { public static String post(String url, String json) { return post(url, json, null); } DruidRestUtils(); static String post(String url, String json); static String post(String url, String json, Long timeOut); static String post(String url, String json, Long timeOut, TimeUnit timeUnit, String charset);  }