You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's better to avoid conditions in tests.
Currently a parametrized test with if-else condition inside is generated.
The test changes the behavior basing on expected exception (NPE or not)
Expected behavior
It's better to avoid conditions and loops in tests where possible.
Suggestion for here: generate 2 parametrized tests: one expecting NPE and another one for other exceptions.
Environment
JRE 8 - 17 - ...
Context
Generate tests with UnitTestBot - RC build
with Parametrized tests checked
The text was updated successfully, but these errors were encountered:
Description
It's better to avoid conditions in tests.
Currently a parametrized test with if-else condition inside is generated.
The test changes the behavior basing on expected exception (NPE or not)
Expected behavior
It's better to avoid conditions and loops in tests where possible.
Suggestion for here: generate 2 parametrized tests: one expecting NPE and another one for other exceptions.
Environment
JRE 8 - 17 - ...
Context
Generate tests with UnitTestBot - RC build
with Parametrized tests checked
The text was updated successfully, but these errors were encountered: