@Test public void shouldIgnoreNonRequestedPlayerData() throws UnsupportedEncodingException { sender.scheduleUpdate(updateRequestFor("vasya")); sender.sendUpdates(screenFor("petya", "petyaboard").asMap()); assertTrue(asyncContext.isComplete()); }
@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()); }