mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 08:27:14 +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
|
@ -14,8 +14,6 @@
|
|||
|
||||
package google.registry.tools;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
|
||||
import com.beust.jcommander.ParameterException;
|
||||
|
||||
import org.junit.Test;
|
||||
|
@ -26,18 +24,15 @@ public class DomainCheckCommandTest extends EppToolCommandTestCase<DomainCheckCo
|
|||
@Test
|
||||
public void testSuccess() throws Exception {
|
||||
runCommandForced("--client=NewRegistrar", "example.tld");
|
||||
verifySent("testdata/domain_check.xml", false, false);
|
||||
eppVerifier().verifySent("testdata/domain_check.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_multipleTlds() throws Exception {
|
||||
runCommandForced("--client=NewRegistrar", "example.tld", "example.tld2");
|
||||
verifySent(
|
||||
ImmutableList.of(
|
||||
"testdata/domain_check.xml",
|
||||
"testdata/domain_check_second_tld.xml"),
|
||||
false,
|
||||
false);
|
||||
eppVerifier().verifySent(
|
||||
"testdata/domain_check.xml",
|
||||
"testdata/domain_check_second_tld.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -47,7 +42,7 @@ public class DomainCheckCommandTest extends EppToolCommandTestCase<DomainCheckCo
|
|||
"example.tld",
|
||||
"example2.tld",
|
||||
"example3.tld");
|
||||
verifySent("testdata/domain_check_multiple.xml", false, false);
|
||||
eppVerifier().verifySent("testdata/domain_check_multiple.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -58,12 +53,9 @@ public class DomainCheckCommandTest extends EppToolCommandTestCase<DomainCheckCo
|
|||
"example2.tld",
|
||||
"example3.tld",
|
||||
"example.tld2");
|
||||
verifySent(
|
||||
ImmutableList.of(
|
||||
"testdata/domain_check_multiple.xml",
|
||||
"testdata/domain_check_second_tld.xml"),
|
||||
false,
|
||||
false);
|
||||
eppVerifier().verifySent(
|
||||
"testdata/domain_check_multiple.xml",
|
||||
"testdata/domain_check_second_tld.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue