Package org.jbpm.examples.doorjava

Examples of org.jbpm.examples.doorjava.Door.unlock()


  }

  public void testClosedUnlock() {
    Door door = new Door();
    try {
      door.unlock();
      fail("expected exception");
    } catch (IllegalStateException e) {
    }
  }
View Full Code Here


  public void testOpenedUnlock() {
    Door door = new Door();
    door.state = Door.OPEN;
    try {
      door.unlock();
      fail("expected exception");
    } catch (IllegalStateException e) {
    }
  }
View Full Code Here

  }

  public void testLockedUnlock() {
    Door door = new Door();
    door.state = Door.LOCKED;
    door.unlock();
    assertSame(Door.CLOSED, door.state);
  }

  public void testOpenLockedOpen() {
    Door door = new Door();
View Full Code Here

  }

  public void testOpenLockedUnlock() {
    Door door = new Door();
    door.state = Door.OPEN_LOCKED;
    door.unlock();
    assertSame(Door.OPEN, door.state);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.