コード例 #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);
     }
   }
 }