google-nomulus/java/google/registry/flows/exceptions
nickfelt 6a8b25360c Use StatusValue XML names in EPP error messages
This changes ResourceStatusProhibitsOperationException so that we print out the list of StatusValues using their XML names rather than the literal enum name, i.e. we use "pendingDelete" rather than "PENDING_DELETE".

This seems more correct given that EPP clients will be used to seeing the status values in the XML representation, and it also matches the existing ResourceHasClientUpdateProhibitedException that hardcodes "clientUpdateProhibited":
http://[]/third_party/java_src/gtld/java/google/registry/flows/exceptions/ResourceHasClientUpdateProhibitedException.java?l=22&rcl=146111211

Also reorganized related test methods and added some missing tests, including for ContactTransferRequestFlow which previously had none.  I also renamed the "clientProhibitedStatusValue" tests to instead say "statusValueNotClientSettable" to be clearer about what's being tested, and that it's not related to the "clientXXProhibited" statuses.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=150248562
2017-03-21 15:14:02 -04:00
..
AlreadyPendingTransferException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
MissingTransferRequestAuthInfoException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
NotAuthorizedToViewTransferException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
NotPendingTransferException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
NoTransferHistoryToQueryException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
NotTransferInitiatorException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ObjectAlreadySponsoredException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
OnlyToolCanPassMetadataException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ResourceAlreadyExistsException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ResourceHasClientUpdateProhibitedException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ResourceStatusProhibitsOperationException.java Use StatusValue XML names in EPP error messages 2017-03-21 15:14:02 -04:00
ResourceToDeleteIsReferencedException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
TooManyResourceChecksException.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
TransferPeriodMustBeOneYearException.java Restrict domain transfer periods to 1 year 2017-03-21 15:11:07 -04:00