mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 16:37:13 +02:00
Fix two nits in DotAppDomainInfo
1) By our convention, entity fields are package-private, not private. 2) Static analysis can't tell that checkArgumentNotNull prevents continuing with a null on the next line. Change the code to make a warning in eclipse go away. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=121944468
This commit is contained in:
parent
b60ceda055
commit
758a4ac387
10 changed files with 88 additions and 99 deletions
|
@ -25,28 +25,28 @@ public class DeleteDomainCommandTest extends EppToolCommandTestCase<DeleteDomain
|
|||
public void testSuccess() throws Exception {
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
||||
"--reason=Test");
|
||||
verifySent("testdata/domain_delete.xml", false, false);
|
||||
new EppVerifier().verifySent("testdata/domain_delete.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_multipleWordReason() throws Exception {
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
||||
"--reason=\"Test test\"");
|
||||
verifySent("testdata/domain_delete_multiple_word_reason.xml", false, false);
|
||||
new EppVerifier().verifySent("testdata/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");
|
||||
verifySent("testdata/domain_delete.xml", false, false);
|
||||
new EppVerifier().verifySent("testdata/domain_delete.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_requestedByRegistrarTrue() throws Exception {
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
||||
"--reason=Test", "--registrar_request=true");
|
||||
verifySent("testdata/domain_delete_by_registrar.xml", false, false);
|
||||
new EppVerifier().verifySent("testdata/domain_delete_by_registrar.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue