|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.google.common.collect.testing.AbstractTester<G>
G
- the type of the test generator required by this tester. An
instance of G should somehow provide an instance of the class under test,
plus any other information required to parameterize the test.public class AbstractTester<G>
This abstract base class for testers allows the framework to inject needed information after JUnit constructs the instances.
This class is emulated in GWT.
Constructor Summary | |
---|---|
AbstractTester()
|
Method Summary | |
---|---|
String |
getName()
|
G |
getSubjectGenerator()
|
String |
getTestMethodName()
Returns the name of the test method invoked by this test instance. |
void |
init(G subjectGenerator,
String suiteName)
|
void |
init(G subjectGenerator,
String suiteName,
Runnable setUp,
Runnable tearDown)
|
void |
setUp()
|
void |
tearDown()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractTester()
Method Detail |
---|
public void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public final void init(G subjectGenerator, String suiteName, Runnable setUp, Runnable tearDown)
public final void init(G subjectGenerator, String suiteName)
public G getSubjectGenerator()
public final String getTestMethodName()
public String getName()
getName
in class junit.framework.TestCase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |