Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipe to change assertTrue(a == null) to assertNull(a) and assertFalse(a == null) with assertNotNull #202

Closed
yeikel opened this issue Mar 30, 2022 · 0 comments · Fixed by #217
Labels
enhancement New feature or request

Comments

@yeikel
Copy link
Contributor

yeikel commented Mar 30, 2022

This is similar to #200

Examples :

@Test
void myTest(){

String a = null;
String b =  "";
assertTrue(a == null);
assertFalse(a == null);

}

@Test
void myTest(){

String a = null;
String b = "";
assertNull(a);
assertNotNull(b);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
2 participants