Examples of ScoringTracker


Examples of org.gnubridge.presentation.gui.ScoringTracker

    assertEquals(80, tracker.getRunningHumanScore());
    assertEquals(80, tracker.getRunningComputerScore());
  }

  public void testGetInstanceConstructsNewByDefault() {
    ScoringTracker instance = ScoringTracker.getInstance();
    assertEquals(ScoringTracker.class, instance.getClass());
  }
View Full Code Here

Examples of org.gnubridge.presentation.gui.ScoringTracker

    ScoringTracker instance = ScoringTracker.getInstance();
    assertEquals(ScoringTracker.class, instance.getClass());
  }

  public void testGetInstanceConstructsNewEachTime() {
    ScoringTracker instance1 = ScoringTracker.getInstance();
    ScoringTracker instance2 = ScoringTracker.getInstance();
    assertFalse(instance1 == instance2);
  }
View Full Code Here

Examples of org.gnubridge.presentation.gui.ScoringTracker

  }

  public void testGetInstanceReturnsMockIfSet() {
    MockScoringTracker mock = new MockScoringTracker();
    ScoringTracker.setInstance(mock);
    ScoringTracker actual = ScoringTracker.getInstance();
    assertEquals(mock, actual);
  }
View Full Code Here

Examples of org.gnubridge.presentation.gui.ScoringTracker

  public void testGetInstanceReturnsMockOnlyOnce() {
    MockScoringTracker mock = new MockScoringTracker();
    ScoringTracker.setInstance(mock);
    ScoringTracker.getInstance();
    ScoringTracker actual = ScoringTracker.getInstance();
    assertFalse(mock == actual);
    assertEquals(ScoringTracker.class, actual.getClass());
  }
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.