mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Move two enums from FlowRunner to FlowTestCase.
They are only needed in test code. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=125126550
This commit is contained in:
parent
038d3d5031
commit
31ddced437
23 changed files with 37 additions and 86 deletions
|
@ -14,16 +14,8 @@
|
|||
|
||||
package google.registry.tools;
|
||||
|
||||
import static google.registry.flows.EppXmlTransformer.marshalWithLenientRetry;
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
import com.google.common.base.Strings;
|
||||
|
||||
import google.registry.flows.EppException;
|
||||
import google.registry.flows.FlowRunner;
|
||||
import google.registry.flows.FlowRunner.CommitMode;
|
||||
import google.registry.flows.FlowRunner.UserPrivileges;
|
||||
|
||||
/** Container class for static utility methods. */
|
||||
class CommandUtilities {
|
||||
|
||||
|
@ -60,10 +52,4 @@ class CommandUtilities {
|
|||
System.out.println(text);
|
||||
}
|
||||
}
|
||||
|
||||
static String runFlow(
|
||||
FlowRunner flowRunner, CommitMode commitMode, UserPrivileges userPrivileges)
|
||||
throws EppException {
|
||||
return new String(marshalWithLenientRetry(flowRunner.run(commitMode, userPrivileges)), UTF_8);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue