1
0
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:
gbrodman
2019-03-20 17:02:43 -07:00
committed by jianglai
parent 0ead4f8d9d
commit 9bf6a860bb
5 changed files with 26 additions and 13 deletions

View File

@@ -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);
}
}