Ejemplo n.º 1
0
 /** Test of isRunning method, of class ISPController. */
 @Test
 public void testIsRunning() {
   System.out.println("testIsRunning");
   boolean expResult = false;
   boolean result = instance.isRunning();
   assertEquals(expResult, result);
 }
Ejemplo n.º 2
0
  /** Test of exit method, of class ISPController. */
  @Test
  public void testExit() {
    System.out.println("testExit");

    List<String> hosts = new ArrayList();
    hosts.add("uva.nl");

    instance.doInBackground(hosts);
    sleepMillis(120);
    instance.exit();
    sleepMillis(1_500);
    assertFalse(instance.isRunning());
    assertFalse(instance.isAlive());
  }