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