3 ms·JUnit Test(expected = BadPracticeException.class)2 points by artem_zin 11y agoosi 11y agostill poor advice. should use http://junit.org/apidocs/org/junit/rules/ExpectedException.html http://junit.org/apidocs/org/junit/rules/ExpectedException.h...artem_zin 11y agoYep, ExpectedException rule is nice, added to the post. Thanks!