Based on the name, I would expect Expect.isNotEmpty to fail only if the string is the empty string, "". I would expect it to pass if the string is non-empty and contains only whitespace, e.g. " ". However, it fails for whitespace strings. This should be documented in the doc comments.
Ideally I'd want the behavior changed, though that would be a breaking change.
Based on the name, I would expect
Expect.isNotEmpty
to fail only if the string is the empty string,""
. I would expect it to pass if the string is non-empty and contains only whitespace, e.g." "
. However, it fails for whitespace strings. This should be documented in the doc comments.Ideally I'd want the behavior changed, though that would be a breaking change.