Another fix for AssertThatStringIsEmpty, added support for CharSequences, added hasSize(0) case, refactored stuff. Added missing html.

This commit is contained in:
2019-03-24 13:03:53 +01:00
parent 458542de7c
commit e2ffce753c
13 changed files with 91 additions and 85 deletions
+3 -2
View File
@@ -36,8 +36,9 @@ Then AssertJ would tell you the contents of the collection on failure.
> from: assertThat(booleanValue).isEqualTo(true/false/Boolean.TRUE/Boolean.FALSE);
> to: assertThat(booleanValue).isTrue()/isFalse();
- AssertThatStringIsEmpty
> from: assertThat(string).isEqualTo("")
> to: assertThat(string).isEmpty();
> from: assertThat(charSequence/string).isEqualTo("");
> from: assertThat(charSequence/string).hasSize(0);
> to: assertThat(charSequence/string).isEmpty();
## TODO
- AssertThatArrayHasLiteralSize