how to avoid warnings from import static org.assertj.core.api.Assertions.assertThat; #3588
pmendelson
started this conversation in
General
Replies: 1 comment 3 replies
-
|
After I wrote this thread I decided to read the javadoc. I now see 2 replacement classes, AssertionsForClassTypes and AssertionsForInterfaceTypes. Thanks for providing such a useful library |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Form day 1 i have always created tests with this pattern
import static org.assertj.core.api.Assertions.assertThat;
Using the static import allows my tests to look more natural.
Recently some of the assertThat signatures have been deprecated. Therefore when I look at my code in an IDE like eclipse i get warnings about my static import.
Are their any recommendations to avoid this warnings without having to write
Assertions.assertThat(tstStr).isNull();
Beta Was this translation helpful? Give feedback.
All reactions