com.google.common.testing
Class TearDownStack
java.lang.Object
com.google.common.testing.TearDownStack
- All Implemented Interfaces:
- TearDownAccepter
@Beta
@GwtCompatible
public class TearDownStack
- extends Object
- implements TearDownAccepter
A TearDownStack
contains a stack of TearDown
instances.
- Since:
- 10.0
- Author:
- Kevin Bourrillion
Method Summary |
void |
addTearDown(TearDown tearDown)
Registers a TearDown implementor which will be run after the test proper. |
void |
runTearDown()
Causes teardown to execute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static final Logger logger
TearDownStack
public TearDownStack()
TearDownStack
public TearDownStack(boolean suppressThrows)
addTearDown
public final void addTearDown(TearDown tearDown)
- Description copied from interface:
TearDownAccepter
- Registers a TearDown implementor which will be run after the test proper.
In JUnit4 language, that means as an @After
.
In JUnit3 language, that means during the
TestCase.tearDown()
step.
- Specified by:
addTearDown
in interface TearDownAccepter
runTearDown
public final void runTearDown()
- Causes teardown to execute.
Copyright © 2010-2012. All Rights Reserved.