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
|
@Test
|
||||||
public void testSuccess() throws Exception {
|
public void testSuccess() throws Exception {
|
||||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force", "--reason=Test");
|
||||||
"--reason=Test");
|
|
||||||
eppVerifier().verifySent("domain_delete.xml");
|
eppVerifier().verifySent("domain_delete.xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSuccess_multipleWordReason() throws Exception {
|
public void testSuccess_multipleWordReason() throws Exception {
|
||||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
runCommand(
|
||||||
"--reason=\"Test test\"");
|
"--client=NewRegistrar", "--domain_name=example.tld", "--force", "--reason=\"Test test\"");
|
||||||
eppVerifier().verifySent("domain_delete_multiple_word_reason.xml");
|
eppVerifier().verifySent("domain_delete_multiple_word_reason.xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSuccess_requestedByRegistrarFalse() throws Exception {
|
public void testSuccess_requestedByRegistrarFalse() throws Exception {
|
||||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
runCommand(
|
||||||
"--reason=Test", "--registrar_request=false");
|
"--client=NewRegistrar",
|
||||||
|
"--domain_name=example.tld",
|
||||||
|
"--force",
|
||||||
|
"--reason=Test",
|
||||||
|
"--registrar_request=false");
|
||||||
eppVerifier().verifySent("domain_delete.xml");
|
eppVerifier().verifySent("domain_delete.xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSuccess_requestedByRegistrarTrue() throws Exception {
|
public void testSuccess_requestedByRegistrarTrue() throws Exception {
|
||||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
runCommand(
|
||||||
"--reason=Test", "--registrar_request=true");
|
"--client=NewRegistrar",
|
||||||
|
"--domain_name=example.tld",
|
||||||
|
"--force",
|
||||||
|
"--reason=Test",
|
||||||
|
"--registrar_request=true");
|
||||||
eppVerifier().verifySent("domain_delete_by_registrar.xml");
|
eppVerifier().verifySent("domain_delete_by_registrar.xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,14 +76,14 @@ public class DeleteDomainCommandTest extends EppToolCommandTestCase<DeleteDomain
|
||||||
@Test
|
@Test
|
||||||
public void testFailure_unknownFlag() throws Exception {
|
public void testFailure_unknownFlag() throws Exception {
|
||||||
thrown.expect(ParameterException.class);
|
thrown.expect(ParameterException.class);
|
||||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld",
|
runCommand(
|
||||||
"--force", "--reason=Test", "--foo");
|
"--client=NewRegistrar", "--domain_name=example.tld", "--force", "--reason=Test", "--foo");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testFailure_mainParameter() throws Exception {
|
public void testFailure_mainParameter() throws Exception {
|
||||||
thrown.expect(ParameterException.class);
|
thrown.expect(ParameterException.class);
|
||||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld",
|
runCommand(
|
||||||
"--force", "--reason=Test", "foo");
|
"--client=NewRegistrar", "--domain_name=example.tld", "--force", "--reason=Test", "foo");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue