Package org.gnubridge.presentation.gui

Examples of org.gnubridge.presentation.gui.MainController.newGame()


    mainController.getBiddingController().placeBid(7, "NT");
    mainController.playGame();
    assertEquals("initial scoring tracker not obtained through factory method", mockTracker, ((MockDealView) mw
        .getDealView()).getScoringTracker());

    mainController.newGame();
    mainController.getBiddingController().placeBid(7, "NT");
    mainController.playGame();
    assertEquals("score was not preserved in between games", mockTracker, ((MockDealView) mw.getDealView())
        .getScoringTracker());
View Full Code Here


    MockScoringTracker mockTracker = new MockScoringTracker();
    ScoringTracker.setInstance(mockTracker);
    MainController mainController = new MainController();
    UsThemVulnerability initialVulnerability = mockTracker.getUsThemVulnerability();
    assertSame("precondition", initialVulnerability, mockTracker.getUsThemVulnerability());
    mainController.newGame();
    assertNotSame(initialVulnerability, mockTracker.getUsThemVulnerability());
  }
}
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.