mirror of
https://github.com/google/nomulus.git
synced 2025-08-04 08:52:12 +02:00
Refactor out creation of server TRIDs so they can be tested
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=152837185
This commit is contained in:
parent
af942774f4
commit
8653d2f204
29 changed files with 174 additions and 62 deletions
|
@ -47,7 +47,7 @@ public class EppExceptionSubject extends Subject<EppExceptionSubject, EppExcepti
|
|||
try {
|
||||
marshal(
|
||||
EppOutput.create(new EppResponse.Builder()
|
||||
.setTrid(Trid.create(null))
|
||||
.setTrid(Trid.create(null, "server-trid"))
|
||||
.setResult(actual().getResult())
|
||||
.build()),
|
||||
ValidationMode.STRICT);
|
||||
|
|
|
@ -283,7 +283,7 @@ public final class FullFieldsTestEntityHelper {
|
|||
.setXmlBytes(xml.getBytes(UTF_8))
|
||||
.setModificationTime(modificationTime)
|
||||
.setClientId("foo")
|
||||
.setTrid(Trid.create("ABC-123"))
|
||||
.setTrid(Trid.create("ABC-123", "server-trid"))
|
||||
.setBySuperuser(false)
|
||||
.setReason(reason)
|
||||
.setRequestedByRegistrar(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue