Package org.gnubridge.core.bidding

Examples of org.gnubridge.core.bidding.UsThemVulnerability


  public void testNewGameResetsVulnerabilityOnScoringTrackerIsReset() {
    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


  public void newGame() {
    if (view != null) {
      view.hide();
    }
    this.view = ViewFactory.getMainView();
    scoringTracker.setUsThemVulnerability(new UsThemVulnerability(new Random().nextBoolean(), new Random()
        .nextBoolean()));
    this.biddingController = new BiddingController(view.getBiddingView(), this, scoringTracker);
    view.show();

  }
View Full Code Here

TOP

Related Classes of org.gnubridge.core.bidding.UsThemVulnerability

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.