elvyssoares

RoutingHandlerTest - Refactored

May 19th, 2020
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. @Before
  2. public void setup() throws Exception{
  3.     new Server().setHandler(handler);
  4.     handler.start();
  5. }
  6.  
  7. @Test
  8. public void withoutSessionHandler() throws Exception {
  9.      assertThat(getSessionHandlers(handler)).isEmpty();
  10. }
  11.  
  12. @After
  13. public void tearDown() throws Exception{
  14.     handler.stop();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment