mirror of
https://github.com/google/nomulus.git
synced 2025-06-25 22:04:56 +02: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:
parent
ff70494bd8
commit
8b37620af1
1 changed files with 14 additions and 6 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue