google-nomulus/java/google/registry
nickfelt 51f5c8bcfe Improve tests for RegistryTool and GtechTool
This improves the tests by:

 1) Adding tests for alphabetical ordering of the command maps, to keep them
    organized, and fixing existing mis-orderings.  Note that this is a no-op
    test for RegistryTool since it uses ImmutableSortedMap (to resort the
    commands after inserting GtechTool.COMMAND_MAP), but it'll be relevant
    in the upcoming CL when they get merged.  I changed GtechTool.COMMAND_MAP
    to use regular ImmutableMap.

 2) Checking that RegistryTool.COMMAND_MAP (the full map, after the existing
    GtechTool.COMMAND_MAP has been merged in) contains the exact same set of
    commands as all the concrete classes implementing Command that we can find.

    This is a stronger test than what we had before, which just checked that
    every Command class appeared in RegistryTool (i.e. that RegistryTool's
    commands are a superset of all Commands found).  You'd think that it'd be
    impossible for RegistryTool to contain commands that aren't in the set of
    Commands we found, but it is if we're not searching for commands properly,
    which we weren't (we were only checking within the .tools package and not
    within any subpackages (e.g. tools.javascrap).  This has now been fixed.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=134451859
2016-10-03 15:51:08 -04:00
..
backup MOE strip compatible_with 2016-08-02 19:14:28 -04:00
batch Consolidate expand billing events action into 'batch' package 2016-10-03 15:49:35 -04:00
bigquery Narrowly scope privileges for API service objects 2016-08-02 19:18:09 -04:00
braintree Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
builddefs Use zip_rule() for EAR/WAR deploy archives 2016-08-02 21:00:39 -04:00
config Remove non-batch async contact/host deletion actions 2016-10-03 15:47:58 -04:00
cron MOE strip compatible_with 2016-08-02 19:14:28 -04:00
dns Tidy up RefreshDnsAction 2016-09-26 13:38:14 -04:00
eclipse Integrate: Eclipse file generation script 2016-05-16 18:39:45 -04:00
env Remove non-batch async contact/host deletion actions 2016-10-03 15:47:58 -04:00
export Set method to POST on actions called from cron fanout 2016-09-26 13:50:03 -04:00
flows Remove non-batch async contact/host deletion actions 2016-10-03 15:47:58 -04:00
gcs Add escrow file import validation logic 2016-08-02 19:22:30 -04:00
groups Narrowly scope privileges for API service objects 2016-08-02 19:18:09 -04:00
idn Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
keyring/api Replace VoidKeyring with InMemoryKeyring and a dummy module 2016-09-07 12:15:08 -04:00
loadtest Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
mapreduce DeReference the codebase 2016-09-02 13:50:20 -04:00
model Fix Java imports across entire codebase to be compliant 2016-09-26 13:44:11 -04:00
module Consolidate expand billing events action into 'batch' package 2016-10-03 15:49:35 -04:00
monitoring Fix encoding error for Stackdriver metrics of cumulative points 2016-10-03 15:43:16 -04:00
pricing Add extra logic for all relevant flows 2016-09-14 15:26:36 -04:00
rdap Add type parameters to suppress Eclipse error message 2016-09-26 13:35:14 -04:00
rde Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
request Fix NullPointerException in group syncing 2016-09-14 15:25:07 -04:00
security MOE strip compatible_with 2016-08-02 19:14:28 -04:00
storage/drive MOE strip compatible_with 2016-08-02 19:14:28 -04:00
tldconfig/idn MOE strip compatible_with 2016-08-02 19:14:28 -04:00
tmch MOE strip compatible_with 2016-08-02 19:14:28 -04:00
tools Improve tests for RegistryTool and GtechTool 2016-10-03 15:51:08 -04:00
ui Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
util Improve pretty-print diffing of Datastore entities 2016-09-19 12:06:54 -04:00
whois Replace loadByUniqueId() with methods that don't overload unique id 2016-09-26 13:20:22 -04:00
xjc Clean up some genrule() script code 2016-08-05 20:40:39 -04:00
xml MOE strip compatible_with 2016-08-02 19:14:28 -04:00
BUILD Mark rest of Domain Registry for App Engine compatibility 2016-08-26 09:48:37 -04:00
repositories.bzl Fix build by upgrading to latest version of AutoValue libs 2016-09-14 16:37:36 -04:00