mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Add generic XML syntax testing to a flow test
Adding it to one test is sufficient because we use the same loading logic across all flows. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=239506003
This commit is contained in:
parent
0ead4f8d9d
commit
9bf6a860bb
5 changed files with 26 additions and 13 deletions
|
@ -22,7 +22,11 @@ import google.registry.model.eppoutput.Greeting;
|
|||
import google.registry.util.Clock;
|
||||
import javax.inject.Inject;
|
||||
|
||||
/** A flow for an Epp "hello". */
|
||||
/**
|
||||
* A flow for an Epp "hello".
|
||||
*
|
||||
* @error {@link google.registry.flows.FlowUtils.GenericXmlSyntaxErrorException}
|
||||
*/
|
||||
public class HelloFlow implements Flow {
|
||||
|
||||
@Inject ExtensionManager extensionManager;
|
||||
|
@ -32,7 +36,7 @@ public class HelloFlow implements Flow {
|
|||
|
||||
@Override
|
||||
public Greeting run() throws EppException {
|
||||
extensionManager.validate(); // There are no legal extensions for this flow.
|
||||
extensionManager.validate(); // There are no legal extensions for this flow.
|
||||
return Greeting.create(clock.nowUtc(), greetingServerId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue