Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public class TestKitExample {
  2.  
  3. @Test
  4. void failIfTestsAreSkipped() {
  5. Events testEvents = EngineTestKit
  6. .engine("junit-jupiter")
  7. .selectors(selectClass(TestKitSubject.class))
  8. .execute()
  9. .tests();
  10.  
  11. testEvents.assertStatistics(stats -> stats.skipped(1));
  12. }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement