mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Move EPP XML testdata to server/testdata
This will allow tests in server to reference the xml files. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=161582503
This commit is contained in:
parent
3372ed718a
commit
39c3706321
59 changed files with 61 additions and 18 deletions
|
@ -14,11 +14,11 @@
|
|||
|
||||
package google.registry.tools;
|
||||
|
||||
import static google.registry.util.ResourceUtils.readResourceUtf8;
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
import com.beust.jcommander.ParameterException;
|
||||
import google.registry.testing.InjectRule;
|
||||
import google.registry.tools.server.ToolsTestData;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import org.junit.Before;
|
||||
import org.junit.Rule;
|
||||
|
@ -35,7 +35,7 @@ public class ExecuteEppCommandTest extends EppToolCommandTestCase<ExecuteEppComm
|
|||
|
||||
@Before
|
||||
public void initCommand() throws Exception {
|
||||
xmlInput = readResourceUtf8(ExecuteEppCommandTest.class, "testdata/contact_create.xml");
|
||||
xmlInput = ToolsTestData.loadUtf8("contact_create.xml");
|
||||
eppFile = writeToNamedTmpFile("eppFile", xmlInput);
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ public class ExecuteEppCommandTest extends EppToolCommandTestCase<ExecuteEppComm
|
|||
|
||||
@Test
|
||||
public void testSuccess_multipleFiles() throws Exception {
|
||||
String xmlInput2 = readResourceUtf8(ExecuteEppCommandTest.class, "testdata/domain_check.xml");
|
||||
String xmlInput2 = ToolsTestData.loadUtf8("domain_check.xml");
|
||||
String eppFile2 = writeToNamedTmpFile("eppFile2", xmlInput2);
|
||||
runCommand("--client=NewRegistrar", "--force", eppFile, eppFile2);
|
||||
eppVerifier().verifySent("contact_create.xml", "domain_check.xml");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue