google-nomulus/javatests/google/registry/model
cgoldfeder aa10792f73 Test that marshaling a domain only does one datastore fetch.
This is true even though the domain has three fields (a contact,
a host, and the registrant) whose foreign keys need to be loaded.

This CL also adds the generic ability to do these sort of tests
elsewhere in the code, by instrumenting the datastore instance
used by Objectify to store static counts of method calls.

TESTED=patched in a rollback of [] and confirmed that the
test failed because there were three reads.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=123885768
2016-06-06 13:31:16 -04:00
..
billing Rename BillingEvent.OneTime.cancellationTargetId 2016-05-27 12:45:19 -04:00
common Follow-up changes to TimeOfYear from [] 2016-05-27 12:56:09 -04:00
contact Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
domain Test that marshaling a domain only does one datastore fetch. 2016-06-06 13:31:16 -04:00
eppoutput Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
export Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
host Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
index Typo in comment 2016-05-16 18:40:40 -04:00
mark Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
ofy Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
poll Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
rde Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
registrar Typo in comment 2016-05-16 18:40:40 -04:00
registry Extract premium pricing to a PricingEngine interface 2016-05-13 23:19:40 -04:00
reporting Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
server Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
smd Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
testdata mv com/google/domain/registry google/registry 2016-05-13 18:55:08 -04:00
tmch Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
transfer Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
translators Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
BUILD Add schema.txt back to open source drop 2016-05-16 20:16:28 -04:00
CreateAutoTimestampTest.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
EntityClassesTest.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
EntityTestCase.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
EppResourceUtilsTest.java Add package for flow pickers 2016-05-27 12:41:11 -04:00
ImmutableObjectTest.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
ModelUtilsTest.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
ResourceCommandTestCase.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
RoidSuffixesTest.java Extract premium pricing to a PricingEngine interface 2016-05-13 23:19:40 -04:00
schema.txt Add schema.txt back to open source drop 2016-05-16 20:16:28 -04:00
SchemaVersionTest.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
UpdateAutoTimestampTest.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00