use of org.mamute.ads.BrutalAds in project mamute by caelum.
the class BrutalAdsTest method should_return_true_if_user_have_less_then_50_karma.
@Test
public void should_return_true_if_user_have_less_then_50_karma() {
User user = user("Leo", "leo@leo.com");
user.increaseKarma(20);
LoggedUser loggedUser = new LoggedUser(user, null);
BrutalAds brutalAds = new BrutalAds(loggedUser);
assertTrue(brutalAds.shouldShowAds());
}
use of org.mamute.ads.BrutalAds in project mamute by caelum.
the class BrutalAdsTest method should_return_true_if_user_not_logged.
@Test
public void should_return_true_if_user_not_logged() {
LoggedUser loggedUser = new LoggedUser(null, null);
BrutalAds brutalAds = new BrutalAds(loggedUser);
assertTrue(brutalAds.shouldShowAds());
}
Aggregations