mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 23:03:34 +02:00
Fix passing of null to some parameters expecting Optional
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=200465575
This commit is contained in:
parent
9097a32cc8
commit
4098487b80
6 changed files with 98 additions and 63 deletions
|
@ -41,7 +41,7 @@ public class ListTldsActionTest extends ListActionTestCase {
|
|||
|
||||
@Test
|
||||
public void testRun_noParameters() throws Exception {
|
||||
testRunSuccess(action, null, null, null, "xn--q9jyb4c");
|
||||
testRunSuccess(action, Optional.empty(), Optional.empty(), Optional.empty(), "xn--q9jyb4c");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -49,8 +49,8 @@ public class ListTldsActionTest extends ListActionTestCase {
|
|||
testRunSuccess(
|
||||
action,
|
||||
Optional.of("tldType"),
|
||||
null,
|
||||
null,
|
||||
Optional.empty(),
|
||||
Optional.empty(),
|
||||
"TLD tldType",
|
||||
"----------- -------",
|
||||
"xn--q9jyb4c REAL ");
|
||||
|
@ -61,8 +61,8 @@ public class ListTldsActionTest extends ListActionTestCase {
|
|||
testRunSuccess(
|
||||
action,
|
||||
Optional.of("*"),
|
||||
null,
|
||||
null,
|
||||
Optional.empty(),
|
||||
Optional.empty(),
|
||||
"^TLD .*tldType",
|
||||
"^----------- .*-------",
|
||||
"^xn--q9jyb4c .*REAL ");
|
||||
|
@ -73,8 +73,8 @@ public class ListTldsActionTest extends ListActionTestCase {
|
|||
testRunError(
|
||||
action,
|
||||
Optional.of("badfield"),
|
||||
null,
|
||||
null,
|
||||
Optional.empty(),
|
||||
Optional.empty(),
|
||||
"^Field 'badfield' not found - recognized fields are:");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue