use of limelight.ui.model.MockStage in project limelight by slagyr.
the class TheaterTest method doesntAttemptsToCloseProductionWhenAllStagesAreHiddenButStillHasVitalStage.
@Test
public void doesntAttemptsToCloseProductionWhenAllStagesAreHiddenButStillHasVitalStage() throws Exception {
MockStage stage2 = new MockStage("two");
defaultStage.setVital(false);
stage2.setVital(true);
theater.add(defaultStage);
theater.add(stage2);
defaultStage.setVisible(false);
stage2.setVisible(false);
new StageDeactivatedEvent().dispatch(defaultStage);
new StageDeactivatedEvent().dispatch(stage2);
assertEquals(false, production.closeAttempted);
}
Aggregations