net.walend.toolkit.junit
class TestSetup.HardenedProtectable

java.lang.Object
  |
  +--net.walend.toolkit.junit.TestSetup.HardenedProtectable
All Implemented Interfaces:
Protectable
Enclosing class:
TestSetup

private class TestSetup.HardenedProtectable
extends java.lang.Object
implements Protectable

HardenedProtectable runs the setUp() and basicRun() inside a try block. A catch(Exception) reports any Exceptions as errors to the result. Then HardenedProtectable runs tearDown() inside a finally block.

Note that catch(Exception ex) will catch RunTimeExceptions, but will not catch Errors.


Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 



Copyright (c) 2000, 2001, 2002, David Walend