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:
cgoldfeder 2016-05-10 07:28:23 -07:00 committed by Justine Tunney
parent b60ceda055
commit 758a4ac387
10 changed files with 88 additions and 99 deletions

View file

@ -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