mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 16:37:13 +02:00
Fix formatting of DeleteDomainCommand
It was pretty off for some reason, so I just ran google-java-format on it. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154756158
This commit is contained in:
parent
f640d765e8
commit
e6249196af
1 changed files with 19 additions and 12 deletions
|
@ -22,29 +22,36 @@ public class DeleteDomainCommandTest extends EppToolCommandTestCase<DeleteDomain
|
|||
|
||||
@Test
|
||||
public void testSuccess() throws Exception {
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
||||
"--reason=Test");
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force", "--reason=Test");
|
||||
eppVerifier().verifySent("domain_delete.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_multipleWordReason() throws Exception {
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
||||
"--reason=\"Test test\"");
|
||||
runCommand(
|
||||
"--client=NewRegistrar", "--domain_name=example.tld", "--force", "--reason=\"Test test\"");
|
||||
eppVerifier().verifySent("domain_delete_multiple_word_reason.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_requestedByRegistrarFalse() throws Exception {
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
||||
"--reason=Test", "--registrar_request=false");
|
||||
runCommand(
|
||||
"--client=NewRegistrar",
|
||||
"--domain_name=example.tld",
|
||||
"--force",
|
||||
"--reason=Test",
|
||||
"--registrar_request=false");
|
||||
eppVerifier().verifySent("domain_delete.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_requestedByRegistrarTrue() throws Exception {
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
||||
"--reason=Test", "--registrar_request=true");
|
||||
runCommand(
|
||||
"--client=NewRegistrar",
|
||||
"--domain_name=example.tld",
|
||||
"--force",
|
||||
"--reason=Test",
|
||||
"--registrar_request=true");
|
||||
eppVerifier().verifySent("domain_delete_by_registrar.xml");
|
||||
}
|
||||
|
||||
|
@ -69,14 +76,14 @@ public class DeleteDomainCommandTest extends EppToolCommandTestCase<DeleteDomain
|
|||
@Test
|
||||
public void testFailure_unknownFlag() throws Exception {
|
||||
thrown.expect(ParameterException.class);
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld",
|
||||
"--force", "--reason=Test", "--foo");
|
||||
runCommand(
|
||||
"--client=NewRegistrar", "--domain_name=example.tld", "--force", "--reason=Test", "--foo");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_mainParameter() throws Exception {
|
||||
thrown.expect(ParameterException.class);
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld",
|
||||
"--force", "--reason=Test", "foo");
|
||||
runCommand(
|
||||
"--client=NewRegistrar", "--domain_name=example.tld", "--force", "--reason=Test", "foo");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue