Beispiel #1
0
 @Before
 public void prepare() throws Exception {
   tester =
       ToolsWebApp.getMonoServlet(
           testFolder, new Properties(), JSonQueryParams.class, "/queryparams");
   tester.start();
 }
Beispiel #2
0
  @Test
  public void testQueries() throws Exception {
    Response response = ToolsWebApp.doRequestGet(tester, "http://localhost/queryparams", 200);

    logger.trace(response.getContent());
    JSONObject qp = new JSONObject(response.getContent());
    for (String key : new String[] {"tab", "tabslist", "autoperiod", "begin", "end"}) {
      Assert.assertTrue(key + " not found", qp.has(key));
    }
  }