Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void stopTestingIfThisFailed() throws Exception
- {
- someTestStesp();
- if (softAsserter.isOneFailed()) {
- asserter.fail("stopTestingIfThisFailed test Failed");
- throw new Exception("Test can't continue, fail here!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement