Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package reproduce;
- import org.junit.After;
- import org.junit.Test;
- import static org.junit.experimental.results.PrintableResult.testResult;
- public class FailingTest
- {
- static int objCount = 0;
- public FailingTest()
- {
- objCount++;
- }
- @Test
- public void test()
- {
- System.out.println(objCount);
- }
- @After
- public void tearDown()
- {
- testResult(FailingTest.class); // comment this to run only once
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement