google-nomulus/javatests/google/registry
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
..
backup Automatically refactor some exception testing to use new JUnit rules 2017-11-21 18:56:04 -05:00
batch Clean up some code quality issues 2017-12-01 22:14:06 -05:00
bigquery Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
billing Add end-to-end code to run Beam template from App Engine 2017-11-21 18:30:09 -05:00
builddefs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
config Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
cron Remove unnecessary generic type arguments 2017-11-21 18:17:31 -05:00
dns Clean up some code quality issues 2017-12-01 22:14:06 -05:00
export Clean up some code quality issues 2017-12-01 22:14:06 -05:00
flows Clean up some code quality issues 2017-12-01 22:14:06 -05:00
groups Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
keyring Refactor Guava functional methods to use lambdas 2017-12-01 22:14:05 -05:00
mapreduce/inputs Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
model Clean up some code quality issues 2017-12-01 22:14:06 -05:00
module Add apache beam to registry and open source 2017-11-07 17:36:07 -05:00
monitoring Clean up some code quality issues 2017-12-01 22:14:06 -05:00
pricing Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
proxy Open source GCP proxy 2017-11-21 19:19:03 -05:00
rdap Clean up some code quality issues 2017-12-01 22:14:06 -05:00
rde Clean up some code quality issues 2017-12-01 22:14:06 -05:00
reporting Clean up test "load resources" methods and classes 2017-12-01 22:14:05 -05:00
request Automatically refactor some exception testing to use new JUnit rules 2017-11-21 18:56:04 -05:00
security Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
server Clean up some code quality issues 2017-12-01 22:14:06 -05:00
storage/drive Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
testing Clean up some code quality issues 2017-12-01 22:14:06 -05:00
tldconfig/idn Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
tmch Clean up test "load resources" methods and classes 2017-12-01 22:14:05 -05:00
tools Refactor EppToolVerifier to accept chaining verify commands 2017-12-01 22:14:06 -05:00
ui Automatically refactor some exception testing to use new JUnit rules 2017-11-21 18:56:04 -05:00
util Clean up some code quality issues 2017-12-01 22:14:06 -05:00
whois Clean up some code quality issues 2017-12-01 22:14:06 -05:00
xjc Clean up test "load resources" methods and classes 2017-12-01 22:14:05 -05:00
xml Clean up test "load resources" methods and classes 2017-12-01 22:14:05 -05:00