Better HN
top
new
best
ask
show
jobs
Log in
Sign up
JUnit Test(expected = BadPracticeException.class) | Better HN
JUnit Test(expected = BadPracticeException.class)
(artemzin.com)
2 points · by
artem_zin
· 10y ago · 2 comments
Comments
[–]
osi
10y ago
still poor advice. should use
http://junit.org/apidocs/org/junit/rules/ExpectedException.h...
[–]
artem_zin
OP
10y ago
Yep, ExpectedException rule is nice, added to the post. Thanks!