Fix Nomulus build failure in Java 7

Caused by erroneous Java 1.8 setting in an Eclipse workspace

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=150358602
This commit is contained in:
mountford 2017-03-16 13:11:11 -07:00 committed by Ben McIlwain
parent ff70494bd8
commit 8b37620af1

View file

@ -185,12 +185,20 @@ public class PremiumListUtilsTest {
@Test
public void testGetPremiumPrice_bloomFilterFalsePositive() throws Exception {
// Remove one of the premium list entries from behind the Bloom filter's back.
PremiumList pl = PremiumList.get("tld").get();
ofy().transactNew(new VoidWork() {
@Override
public void vrun() {
ofy().delete().keys(Key.create(pl.getRevisionKey(), PremiumListEntry.class, "rich"));
}});
ofy()
.transactNew(
new VoidWork() {
@Override
public void vrun() {
ofy()
.delete()
.keys(
Key.create(
PremiumList.get("tld").get().getRevisionKey(),
PremiumListEntry.class,
"rich"));
}
});
ofy().clearSessionCache();
assertThat(getPremiumPrice("rich", Registry.get("tld"))).isAbsent();