mirror of
https://github.com/google/nomulus
synced 2026-09-26 09:54:28 +00:00
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:
@@ -185,12 +185,20 @@ public class PremiumListUtilsTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testGetPremiumPrice_bloomFilterFalsePositive() throws Exception {
|
public void testGetPremiumPrice_bloomFilterFalsePositive() throws Exception {
|
||||||
// Remove one of the premium list entries from behind the Bloom filter's back.
|
// Remove one of the premium list entries from behind the Bloom filter's back.
|
||||||
PremiumList pl = PremiumList.get("tld").get();
|
ofy()
|
||||||
ofy().transactNew(new VoidWork() {
|
.transactNew(
|
||||||
@Override
|
new VoidWork() {
|
||||||
public void vrun() {
|
@Override
|
||||||
ofy().delete().keys(Key.create(pl.getRevisionKey(), PremiumListEntry.class, "rich"));
|
public void vrun() {
|
||||||
}});
|
ofy()
|
||||||
|
.delete()
|
||||||
|
.keys(
|
||||||
|
Key.create(
|
||||||
|
PremiumList.get("tld").get().getRevisionKey(),
|
||||||
|
PremiumListEntry.class,
|
||||||
|
"rich"));
|
||||||
|
}
|
||||||
|
});
|
||||||
ofy().clearSessionCache();
|
ofy().clearSessionCache();
|
||||||
|
|
||||||
assertThat(getPremiumPrice("rich", Registry.get("tld"))).isAbsent();
|
assertThat(getPremiumPrice("rich", Registry.get("tld"))).isAbsent();
|
||||||
|
|||||||
Reference in New Issue
Block a user