google-nomulus/javatests/google/registry/tools
guyben 68768a561f Refactor EppToolVerifier to accept chaining verify commands
We're doing this to allow several new tests:
- xml files (that exist today)
- xml files with substitutions
- xml content (maybe? Currently private. Caching the files seems more readable)
- no data at all

Instead of having only one interface

eppToolVerifier.verifySent("file1.xml", "file2.xml");

we're refactoring to allow:
eppToolVerifier
  .verifySent("file1.xml")
  .verifySentAny() // we don't care about this epps
  .verifySent("file2.xml", substitutions)
  .verifyNoMoreSent();

In this case we're checking that "exactly 3 EPPs were sent, where the 1st one has content from file1.xml, and the 3rd one has the content from file2.xml, after the given substitutions were applied"

This also updates EppToolCommandTestCase to have only one EppToolVerifier, and
always finish by checking verifyNoMoreSent, meaning that in every test - all
sent epps must be accounted for (verified or skiped)

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=177353887
2017-12-01 22:14:06 -05:00
..
params Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
server Clean up test "load resources" methods and classes 2017-12-01 22:14:05 -05:00
testdata Move EPP XML testdata to server/testdata 2017-07-12 11:03:50 -04:00
AllocateDomainCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
AuthModuleTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
BUILD Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
CommandTestCase.java Add domain_lock nomulus command 2017-11-21 18:54:42 -05:00
ComparableEntityTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
CompareDbBackupsTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
CreateAnchorTenantCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
CreateCdnsTldTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
CreateContactCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
CreateCreditBalanceCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
CreateCreditCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
CreateDomainCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
CreateHostCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
CreateLrpTokensCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
CreateOrUpdatePremiumListCommandTestCase.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
CreateOrUpdateReservedListCommandTestCase.java Replace more deprecated uses of Files methods 2017-02-02 17:08:12 -05:00
CreatePremiumListCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateRegistrarCommandTest.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
CreateRegistrarGroupsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateReservedListCommandTest.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
CreateTldCommandTest.java Add validation to ROID suffixes 2017-11-07 16:51:06 -05:00
DefaultRequestFactoryModuleTest.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
DeleteCreditCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
DeleteDomainCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
DeleteEntityCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DeleteHostCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
DeletePremiumListCommandTest.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
DeleteReservedListCommandTest.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
DeleteTldCommandTest.java Add nomulus tool command to delete a TLD 2017-04-05 10:10:38 -04:00
DomainApplicationInfoCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
DomainCheckClaimsCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
DomainCheckCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
DomainCheckFeeCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
EncryptEscrowDepositCommandTest.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
EppToolCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
EppToolCommandTestCase.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
EppToolVerifier.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
ExecuteEppCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
GenerateAuctionDataCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
GenerateDnsReportCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
GenerateEscrowDepositCommandTest.java Fix parameter problem in GenerateEscrowDepositCommand 2017-05-23 17:22:49 -04:00
GetApplicationCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetApplicationIdsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetClaimsListCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
GetContactCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetDomainCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetHistoryEntriesCommandTest.java Fix NPE in GetHistoryEntriesCommand 2017-10-24 16:53:47 -04:00
GetHostCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetLrpTokenCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetRegistrarCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
GetResourceByKeyCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetSchemaTreeCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
GetTldCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GhostrydeCommandTest.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
LevelDbFileBuilder.java Implement compare_db_backups "main" 2017-09-20 10:27:17 -04:00
LevelDbFileBuilderTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
LevelDbLogReaderTest.java Create an entity record accumulator 2017-09-12 15:51:50 -04:00
LevelDbUtil.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
ListCursorsCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
ListDomainsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListHostsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListObjectsCommandTestCase.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
ListPremiumListsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListRegistrarsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListReservedListsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListTldsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
LoadTestCommandTest.java Make name and address fields required on Registrar 2017-05-17 11:44:46 -04:00
LockDomainCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
MutatingCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
PublishDetailReportCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RecordAccumulatorTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
RegistrarContactCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
RegistryToolEnvironmentTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
RegistryToolTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
ResaveEntitiesCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
ResaveEnvironmentEntitiesCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
ResaveEppResourcesCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
RestoreCommitLogsCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
SetupOteCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
UniformRapidSuspensionCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
UnlockDomainCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
UpdateApplicationStatusCommandTest.java Automatically refactor some exception testing to use new JUnit rules 2017-11-21 18:56:04 -05:00
UpdateClaimsNoticeCommandTest.java Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
UpdateCursorsCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
UpdateDomainCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
UpdatePremiumListCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UpdateRegistrarCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
UpdateReservedListCommandTest.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
UpdateServerLocksCommandTest.java Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
UpdateSmdCommandTest.java Use specific date for testing UpdateSmdCommand 2017-08-01 16:57:36 -04:00
UpdateTldCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
UploadClaimsListCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
ValidateEscrowDepositCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
ValidateLoginCredentialsCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
VerifyOteCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00