|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.common.testing.SloppyTearDown
public abstract class SloppyTearDown
Simple utility for when you want to create a TearDown
that may throw
an exception but should not fail a test when it does. Use it just like a
TearDown
, except override sloppyTearDown()
instead.
Field Summary | |
---|---|
static java.util.logging.Logger |
logger
|
Constructor Summary | |
---|---|
SloppyTearDown()
|
Method Summary | |
---|---|
abstract void |
sloppyTearDown()
|
void |
tearDown()
Performs a single tear-down operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.logging.Logger logger
Constructor Detail |
---|
public SloppyTearDown()
Method Detail |
---|
public final void tearDown()
TearDown
TearDownTestCase
and
TearDownTestCase
for example.
If you want to not fail a test when a TearDown
throws an
exception, you should implement a SloppyTearDown
instead.
Note that, for backwards compatibility, JUnit 3's
TearDownTestCase
currently does
not fail a test when an exception is thrown from one of its
TearDown
s, but this is subject to change. Also, Junit 4's
TearDownTestCase
will.
tearDown
in interface TearDown
public abstract void sloppyTearDown() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |