Esempio n. 1
0
 protected void setUp() {
   if (_subject instanceof TestLifeCycle) {
     try {
       ((TestLifeCycle) _subject).setUp();
     } catch (Exception e) {
       throw new SetupFailureException(e);
     }
   }
 }
Esempio n. 2
0
 protected void tearDown() {
   if (_subject instanceof TestLifeCycle) {
     try {
       ((TestLifeCycle) _subject).tearDown();
     } catch (Exception e) {
       throw new TearDownFailureException(e);
     }
   }
 }