コード例 #1
0
  @Test
  public void testCheckForAchievementMilestoneInvalidEmail() {
    dbStub.setValidResults(Achievements.GOLD.getAwardThreshold());
    emailStub.setEmailSent(false);
    test.checkForAchievementMilestone(invalidEmail);

    assertFalse(emailStub.emailSent());
  }
コード例 #2
0
  @Test
  public void testCheckForAchievementMilestoneBronze() {
    dbStub.setValidResults(Achievements.BRONZE.getAwardThreshold());
    emailStub.setEmailSent(false);
    test.checkForAchievementMilestone(validEmail);

    assertTrue(emailStub.emailSent());
  }