コード例 #1
0
  @Test
  public void shouldIgnoreNonRequestedPlayerData() throws UnsupportedEncodingException {
    sender.scheduleUpdate(updateRequestFor("vasya"));

    sender.sendUpdates(screenFor("petya", "petyaboard").asMap());

    assertTrue(asyncContext.isComplete());
  }
コード例 #2
0
  @Test
  public void shouldCompleteResponseWhenExceptionOnWrite() throws IOException {
    response.setCharacterEncoding("NON_EXISTENT_ENCODING_FOR_IO_EXCEPTION");
    sender.scheduleUpdate(updateRequestFor("vasya"));

    sender.sendUpdates(screenFor("vasya", "vasyaboard").asMap());

    assertTrue(asyncContext.isComplete());
  }