google-nomulus/java/google/registry/tools
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
..
javascrap Clean up LoadAndResaveCommand 2016-09-26 13:39:46 -04:00
params Add LRP TLD states to Registry and *_tld tools 2016-08-05 20:41:11 -04:00
server Move prober deletion action to backend module 2016-10-03 15:41:38 -04:00
soy Rename soy templates to use consistent naming scheme 2016-08-22 14:48:40 -04:00
sql Add --set_current_tld_state to UpdateTldCommand 2016-08-02 19:02:19 -04:00
AllocateDomainCommand.java DeReference the codebase 2016-09-02 13:50:20 -04:00
AppEngineConnection.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
AuctionStatusCommand.java DeReference the codebase 2016-09-02 13:50:20 -04:00
BigqueryCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
BigqueryCommandUtilities.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
BigqueryParameters.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
BUILD Add gtech_tool target to tools BUILD 2016-08-22 14:16:12 -04:00
CanonicalizeLabelsCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
CheckSnapshotCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
Command.java Make javadoc <p> style guide compliant 2016-05-18 13:09:01 -04:00
CommandUtilities.java Replace to(Upper|Lower)Case with Ascii.to$1Case 2016-07-19 10:43:38 -04:00
ConfirmingCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
ConvertIdnCommand.java Replace to(Upper|Lower)Case with Ascii.to$1Case 2016-07-19 10:43:38 -04:00
CreateAnchorTenantCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
CreateAuctionCreditsCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
CreateContactCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
CreateCreditBalanceCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
CreateCreditCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
CreateDomainCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
CreateHostCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
CreateLrpTokensCommand.java Fix Java imports across entire codebase to be compliant 2016-09-26 13:44:11 -04:00
CreateOrUpdatePremiumListCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
CreateOrUpdateRegistrarCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
CreateOrUpdateReservedListCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
CreateOrUpdateTldCommand.java Fix NPE in registry_tool when creating or updating a TLD with a dns writer 2016-08-15 16:48:20 -04:00
CreatePremiumListCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
CreateRegistrarCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
CreateRegistrarGroupsCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
CreateReservedListCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
CreateSandboxTldCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
CreateTldCommand.java Add --set_current_tld_state to UpdateTldCommand 2016-07-21 17:54:41 -04:00
DeleteCreditCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
DeleteDomainCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
DeleteEntityCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
DeleteEppResourceCommand.java DeReference the codebase 2016-09-02 13:50:20 -04:00
DeletePremiumListCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
DeleteReservedListCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
DomainApplicationInfoCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
DomainCheckClaimsCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
DomainCheckCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
DomainCheckFeeCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
EncryptEscrowDepositCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
EppToolCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
EscrowDepositEncryptor.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
ExecuteEppCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
GenerateApplicationsReportCommand.java DeReference the codebase 2016-09-02 13:50:20 -04:00
GenerateAuctionDataCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
GenerateDnsReportCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
GenerateEscrowDepositCommand.java DeReference the codebase 2016-09-02 13:50:20 -04:00
GenerateLordnCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
GenerateZoneFilesCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
GetApplicationCommand.java Refactor GetEppResourceCommand hierarchy 2016-09-26 13:41:14 -04:00
GetApplicationIdsCommand.java Refactor GetEppResourceCommand hierarchy 2016-09-26 13:41:14 -04:00
GetAppliedLabelsCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
GetClaimsListCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
GetContactCommand.java Refactor GetEppResourceCommand hierarchy 2016-09-26 13:41:14 -04:00
GetDomainCommand.java Refactor GetEppResourceCommand hierarchy 2016-09-26 13:41:14 -04:00
GetEppResourceCommand.java Refactor GetEppResourceCommand hierarchy 2016-09-26 13:41:14 -04:00
GetHistoryEntriesCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
GetHostCommand.java Refactor GetEppResourceCommand hierarchy 2016-09-26 13:41:14 -04:00
GetLrpTokenCommand.java Swap id and indexed field in LrpToken 2016-08-15 16:39:03 -04:00
GetRegistrarCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
GetResourceByKeyCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
GetSchemaCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
GetSchemaTreeCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
GetTldCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
GhostrydeCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
GtechTool.java Improve tests for RegistryTool and GtechTool 2016-10-03 15:51:08 -04:00
HashCertificateCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
HelpCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
Injector.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
ListCreditsCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
ListCursorsCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
ListDomainsCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
ListHostsCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
ListObjectsCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
ListPremiumListsCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
ListRegistrarsCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
ListReservedListsCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
ListTldsCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
LoadSnapshotCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
logging.properties mv com/google/domain/registry google/registry 2016-05-13 18:55:08 -04:00
LoggingParameters.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
MakeBillingTablesCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
MutatingCommand.java Improve pretty-print diffing of Datastore entities 2016-09-19 12:06:54 -04:00
MutatingEppToolCommand.java Add a throw-away tool to remove IP addresses of external hosts 2016-05-13 23:17:26 -04:00
package-info.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
PendingEscrowCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
PublishDetailReportCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
RandomStringGenerator.java Allow PasswordGenerator to use different alphabets 2016-09-07 12:07:58 -04:00
RegistrarActivityReportCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
RegistrarContactCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
RegistryCli.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
RegistryTool.java Improve tests for RegistryTool and GtechTool 2016-10-03 15:51:08 -04:00
RegistryToolComponent.java Remove straggling JarKeyring link and sort MOE-added imports 2016-09-14 15:29:30 -04:00
RegistryToolEnvironment.java Replace to(Upper|Lower)Case with Ascii.to$1Case 2016-07-19 10:43:38 -04:00
RegistryToolModule.java Fix Java imports across entire codebase to be compliant 2016-09-26 13:44:11 -04:00
ResaveEnvironmentEntitiesCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
SendEscrowReportToIcannCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
ServerSideCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
SetupOteCommand.java Allow PasswordGenerator to use different alphabets 2016-09-07 12:07:58 -04:00
StringGenerator.java Fix Java imports across entire codebase to be compliant 2016-09-26 13:44:11 -04:00
UniformRapidSuspensionCommand.java Replace loadByUniqueId() with methods that don't overload unique id 2016-09-26 13:20:22 -04:00
UpdateApplicationStatusCommand.java Replace loadByUniqueId() with methods that don't overload unique id 2016-09-26 13:20:22 -04:00
UpdateClaimsNoticeCommand.java Replace loadByUniqueId() with methods that don't overload unique id 2016-09-26 13:20:22 -04:00
UpdateCreditsCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
UpdateCursorsCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
UpdatePremiumListCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
UpdateRegistrarCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
UpdateReservedListCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
UpdateSandboxTldCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
UpdateServerLocksCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
UpdateSmdCommand.java Replace loadByUniqueId() with methods that don't overload unique id 2016-09-26 13:20:22 -04:00
UpdateTldCommand.java Fix Java imports across entire codebase to be compliant 2016-09-26 13:44:11 -04:00
UploadClaimsListCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
UserIdProvider.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
ValidateEscrowDepositCommand.java Convert entire project to strict lexicographical import sort ordering 2016-07-13 15:59:53 -04:00
ValidateLoginCredentialsCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
VerifyOteCommand.java Rename "clientIdentifier" to "clientId" almost everywhere 2016-09-22 14:30:05 -04:00
WhoisQueryCommand.java Add WHOIS disclaimer text to ConfigModule 2016-07-21 14:55:38 -04:00