mirror of
https://github.com/google/nomulus
synced 2026-01-06 21:47:31 +00: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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user