Package org.jbpm.examples.doorjava

Examples of org.jbpm.examples.doorjava.Door


    } catch (IllegalStateException e) {
    }
  }

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


    } catch (IllegalStateException e) {
    }
  }

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

    } catch (IllegalStateException e) {
    }
  }

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

import junit.framework.TestCase;

public class DoorTest extends TestCase {

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

    door.open();
    assertSame(Door.OPEN, door.state);
  }

  public void testClosedLock() {
    Door door = new Door();
    door.lock();
    assertSame(Door.LOCKED, door.state);
  }
View Full Code Here

    door.lock();
    assertSame(Door.LOCKED, door.state);
  }

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

TOP

Related Classes of org.jbpm.examples.doorjava.Door

Copyright © 2018 www.massapicom. 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.