mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 16:30:12 +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
|
@ -56,8 +56,8 @@ public class ListHostsActionTest extends ListActionTestCase {
|
|||
testRunSuccess(
|
||||
action,
|
||||
Optional.of("repoId"),
|
||||
null,
|
||||
null,
|
||||
Optional.empty(),
|
||||
Optional.empty(),
|
||||
"^fullyQualifiedHostName\\s+repoId\\s*$",
|
||||
"^-+\\s+-+\\s*$",
|
||||
"^example1.foo\\s+3-ROID\\s*$",
|
||||
|
@ -71,8 +71,8 @@ public class ListHostsActionTest extends ListActionTestCase {
|
|||
testRunSuccess(
|
||||
action,
|
||||
Optional.of("*"),
|
||||
null,
|
||||
null,
|
||||
Optional.empty(),
|
||||
Optional.empty(),
|
||||
"^fullyQualifiedHostName\\s+.*repoId",
|
||||
"^-+\\s+-+",
|
||||
"^example1.foo\\s+.*2",
|
||||
|
@ -86,8 +86,8 @@ public class ListHostsActionTest extends ListActionTestCase {
|
|||
testRunSuccess(
|
||||
action,
|
||||
Optional.of("*,repoId"),
|
||||
null,
|
||||
null,
|
||||
Optional.empty(),
|
||||
Optional.empty(),
|
||||
"^fullyQualifiedHostName\\s+.*repoId",
|
||||
"^-+\\s+-+",
|
||||
"^example1.foo\\s+.*2",
|
||||
|
@ -101,8 +101,8 @@ public class ListHostsActionTest 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