use of org.activityinfo.server.digest.UserDigest in project activityinfo by bedatadriven.
the class GeoDigestModelBuilderTest method testEmptyDigestsAreNotSent.
@Test
public void testEmptyDigestsAreNotSent() throws Exception {
// only notification
User user = em.find(User.class, 1);
LocalDate today = new LocalDate(2041, 1, 1);
UserDigest userDigest = new UserDigest(user, today.atMidnightInMyTimezone(), 1, "testToken");
GeoDigestModel model = geoDigestModelBuilder.createModel(userDigest);
assertThat(model.hasData(), equalTo(false));
}
Aggregations