Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. abstract class AbstractServerDependantTest {
  2.  
  3. protected Server server;
  4.  
  5. protected Client client;
  6.  
  7. @Before
  8. public void setUp() {
  9. server = new Server();
  10. server.start();
  11. client = new Client();
  12. client.connectTo(server);
  13. }
  14.  
  15. @After
  16. public void tearDpwm() {
  17. client.disconnect();
  18. server.shutDown();
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement