Skip to content

Commit

Permalink
add isEmpty test
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbempel committed May 13, 2024
1 parent 492be89 commit 238accc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ void testBooleanOperation() throws Exception {
fields.put("emptyStr", "");
fields.put("emptyList", new ArrayList<>());
fields.put("emptyMap", new HashMap<>());
fields.put("emptySet", new HashSet<>());
fields.put("emptyArray", new Object[0]);
ValueReferenceResolver ctx = RefResolverHelper.createResolver(null, null, fields);
assertTrue(probeCondition.execute(ctx));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{"isEmpty": {"ref": "emptyStr"}},
{"isEmpty": {"ref": "emptyList"}},
{"isEmpty": {"ref": "emptyMap"}},
{"isEmpty": {"ref": "emptySet"}},
{"isEmpty": {"ref": "emptyArray"}},
{"not": {"isDefined": {"ref": "@exception"}}}
]
Expand Down

0 comments on commit 238accc

Please sign in to comment.