Пример #1
0
 /** Clear FailFast instances. */
 @After
 public void tearDown() {
   // this would be in you application shutdown section
   SFailFast.setFailFastOrNull(null);
   this.checker = null;
   this.failer = null;
 }
Пример #2
0
 /** Setup FailFast instances. */
 @Before
 public void setUp() {
   // this would be in you application startup section
   ICallContractor callContractor = new CallContractor();
   IFailFast failFastOrNull =
       new FailFast(new Checker(callContractor), new Failer(callContractor), callContractor);
   SFailFast.setFailFastOrNull(failFastOrNull);
   this.checker = SFailFast.getChecker();
   this.failer = SFailFast.getFailer();
 }