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