예제 #1
0
 private void sendRequest(String userAgent) {
   for (int i = 0; i < CollectUserAgentFilter.SAMPLE_FREQ; i++) {
     String url = functionalTestHelper.baseUri().toString();
     JaxRsResponse resp = RestRequest.req().header("User-Agent", userAgent).get(url);
     String json = resp.getEntity();
     resp.close();
     assertEquals(json, 200, resp.getStatus());
   }
 }