|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.hibernate.junit.UnitTestCase
public abstract class UnitTestCase
A basic JUnit TestCase
subclass for
adding some Hibernate specific behavior and functionality.
Constructor Summary | |
---|---|
UnitTestCase(String string)
|
Method Summary | |
---|---|
static void |
assertClassAssignability(Class source,
Class target)
|
static void |
assertElementTypeAssignability(Collection collection,
Class clazz)
|
static junit.framework.TestSuite |
createFailureExpectedSuite(Class testClass)
Supports easy creation of TestSuites where a subclass' "FailureExpected" version of a base test is included in the suite, while the base test is excluded. |
String |
fullTestName()
|
protected void |
reportSkip(String reason,
String testDescription)
|
void |
runBare()
runBare overridden in order to apply FailureExpected validations as well as start/complete logging |
protected void |
skipExpectedFailure(Throwable error)
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnitTestCase(String string)
Method Detail |
---|
public void runBare() throws Throwable
runBare
in class junit.framework.TestCase
Throwable
protected void skipExpectedFailure(Throwable error)
public static void assertElementTypeAssignability(Collection collection, Class clazz) throws junit.framework.AssertionFailedError
junit.framework.AssertionFailedError
public static void assertClassAssignability(Class source, Class target) throws junit.framework.AssertionFailedError
junit.framework.AssertionFailedError
public String fullTestName()
protected void reportSkip(String reason, String testDescription)
public static junit.framework.TestSuite createFailureExpectedSuite(Class testClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |