Package com.google.common.testing
Class TearDownStack
java.lang.Object
com.google.common.testing.TearDownStack
- All Implemented Interfaces:
TearDownAccepter
- Since:
- 10.0
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Objectprivate static final Logger(package private) final LinkedList<TearDown> private final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddTearDown(TearDown tearDown) Registers a TearDown implementor which will be run after the test proper.final voidCauses teardown to execute.
-
Field Details
-
logger
-
lock
-
stack
-
suppressThrows
private final boolean suppressThrows
-
-
Constructor Details
-
TearDownStack
public TearDownStack() -
TearDownStack
public TearDownStack(boolean suppressThrows)
-
-
Method Details
-
addTearDown
Description copied from interface:TearDownAccepterRegisters 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:
addTearDownin interfaceTearDownAccepter
-
runTearDown
public final void runTearDown()Causes teardown to execute.
-