コード例 #1
0
  @Test
  public void testPriority() throws IOException, ServletException {

    AtmosphereRequest request =
        new AtmosphereRequest.Builder().pathInfo("/priority").method("GET").build();
    request.header(X_ATMOSPHERE_TRANSPORT, LONG_POLLING_TRANSPORT);
    framework.doCometSupport(request, AtmosphereResponse.newInstance());
    assertEquals(
        framework.getAtmosphereHandlers().get("/priority").interceptors.getFirst().toString(),
        "XXX");

    assertNotNull(r.get());
  }