ServerTestCase.java 420 B

12345678910111213141516171819202122232425
  1. package server;
  2. import static org.junit.Assert.*;
  3. import org.junit.AfterClass;
  4. import org.junit.BeforeClass;
  5. import org.junit.Test;
  6. public class ServerTestCase {
  7. @BeforeClass
  8. public static void setUpClass() {
  9. ServerTestSuite.runServer.start();
  10. }
  11. @Test
  12. public void testCInt() {
  13. assertEquals(Server.CInt("832"), 832);
  14. }
  15. @AfterClass
  16. public static void tearDownClass() {
  17. Server.exit();
  18. }
  19. }