Package org.jbehave.threaded.swing

Examples of org.jbehave.threaded.swing.Idler


    ensureThat(gamePanel.isShowing());
  }
   
    public void shouldHaveLabelDisplayingGameOverMessageWhenGameOver() throws Exception {
        frame.reportGameStateChanged(GameState.RUNNING);
        new Idler().waitForIdle();
        JLabel label = (JLabel) windowWrapper.findComponent(ComponentNames.GAME_MESSAGE);
        ensureThat(label.getText(), eq(""));
        frame.reportGameStateChanged(GameState.OVER);
        new Idler().waitForIdle();
        ensureThat(label.getText(), eq("Game over, man! Game over!"));
    }
View Full Code Here

TOP

Related Classes of org.jbehave.threaded.swing.Idler

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.