google-nomulus/javatests/google/registry/model
mcilwain 8f456bcf64 Clarify when to use cache (or not) when loading premium lists
You don't want to use the cache when loading them for the purposes of updating
them, but you definitely do still want to use the cache when checking the
price of individual domains.

In [] the cache clearing of premium lists on update was removed. This
is a good thing in aggregate because the cache is per-instance and thus
misleading, but it also caused us to not be able to update the same premium
list twice within an hour because the second update would hit a "PremiumList
was concurrently edited" exception, owing to first loading the stale version
from the cache for the purposes of updating it. Now we bypass the cache for
that purpose.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=197768142
2018-05-30 12:18:54 -04:00
..
billing Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
common Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
contact Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
domain Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
eppinput Move tests to use TestDataHelper for reading resources 2018-04-10 16:43:17 -04:00
eppoutput Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
host Add short-term host/contact caching for high-QPS domain mutations 2018-03-06 19:05:20 -05:00
index Cache domains, contacts, and hosts in WHOIS queries 2018-04-10 16:24:03 -04:00
mark Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
ofy Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
poll Remove leniency on poll message ID format without years in them 2018-02-20 15:12:43 -05:00
rde Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
registrar Redirect Registrar.referralUrl UI actions to url field 2018-05-17 21:52:35 -04:00
registry Clarify when to use cache (or not) when loading premium lists 2018-05-30 12:18:54 -04:00
reporting Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
server Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
smd Remove unnecessary type specifications 2017-12-27 11:23:03 -05:00
testdata Redirect Registrar.referralUrl UI actions to url field 2018-05-17 21:52:35 -04:00
tmch Make return value of ClaimsListShard.getClaimKey() Optional 2018-03-06 19:15:52 -05:00
transfer Remove unnecessary type specifications 2017-12-27 11:23:03 -05:00
translators Remove unnecessary type specifications 2017-12-27 11:23:03 -05:00
BUILD Migrate to internal FormattingLogger in preparation of migration to Flogger 2018-05-30 12:18:54 -04:00
CreateAutoTimestampTest.java Replace many Work and VoidWork usages with lambdas 2017-11-21 18:45:12 -05:00
EntityClassesTest.java Replace assertThat(stream.collect(toImmutableList())) with assertThat(stream) 2017-12-27 11:32:45 -05:00
EntityTestCase.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
EppResourceTest.java Cache domains, contacts, and hosts in WHOIS queries 2018-04-10 16:24:03 -04:00
EppResourceUtilsTest.java Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
ImmutableObjectTest.java Remove unnecessary type specifications 2017-12-27 11:23:03 -05:00
ModelUtilsTest.java Remove unnecessary type specifications 2017-12-27 11:23:03 -05:00
ResourceCommandTestCase.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
SchemaVersionTest.java Move all testdata reads to use TestDataHelper, and made tests more fluent 2018-04-10 16:57:55 -04:00
UpdateAutoTimestampTest.java Replace many Work and VoidWork usages with lambdas 2017-11-21 18:45:12 -05:00