|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jmock.core.VerifyingTestCase
org.jmock.core.MockObjectSupportTestCase
org.jmock.MockObjectTestCase
com.bm.testsuite.BaseTest
public class BaseTest
Superclass of all EJB3unit methods. An extension of junit.framework.TestCase that adds those methods that we really wish were part of JUnit.
Field Summary |
---|
Fields inherited from class org.jmock.core.MockObjectSupportTestCase |
---|
ANYTHING, NOT_NULL, NULL |
Constructor Summary | |
---|---|
BaseTest()
Default costructor. |
|
BaseTest(java.lang.String name)
Create an instance. |
Method Summary | ||
---|---|---|
|
assertCollectionsEqual(java.util.Collection<? extends T> a,
java.util.Collection<? extends T> b)
Assert that the two collections are the same irrespective of order. |
|
static void |
assertFalse(boolean condition)
Assert that the specified condition is false. |
|
static void |
assertFalse(java.lang.String description,
boolean condition)
Assert that the specified condition is false. |
|
|
assertInstanceOf(java.lang.String label,
T object,
java.lang.Class<? extends T> clazz)
Assert that the specified object is an instance of this class. |
|
|
assertInstanceOf(T object,
java.lang.Class<? extends T> clazz)
Assert that the specified object is an instance of this class. |
|
protected void |
setValueForField(java.lang.Object forObject,
java.lang.String fieldName,
java.lang.Object toSet)
Sets a value for a field in the tested-bean instance. |
|
void |
testNothing()
We don´t want that test fails because htey have no test method. |
Methods inherited from class org.jmock.MockObjectTestCase |
---|
atLeastOnce, defaultMockNameForType, mock, mock, never, newCoreMock, once, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, throwException |
Methods inherited from class org.jmock.core.MockObjectSupportTestCase |
---|
and, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, isA, newDummy, newDummy, newDummy, not, or, same, stringContains |
Methods inherited from class org.jmock.core.VerifyingTestCase |
---|
registerToVerify, runBare, unregisterToVerify, verify |
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, 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 BaseTest(java.lang.String name)
name
- The name of the testpublic BaseTest()
Method Detail |
---|
public <T> void assertCollectionsEqual(java.util.Collection<? extends T> a, java.util.Collection<? extends T> b)
T
- -
the type of the collectiona
- The first collectionb
- The second collectionpublic static void assertFalse(java.lang.String description, boolean condition)
description
- The failure message to be used if the condition is not false.condition
- The value to check.public static void assertFalse(boolean condition)
condition
- The value to check.public <T> void assertInstanceOf(java.lang.String label, T object, java.lang.Class<? extends T> clazz)
T
- -
the type of the objectlabel
- A description of the testobject
- The object to testclazz
- The classpublic <T> void assertInstanceOf(T object, java.lang.Class<? extends T> clazz)
T
- -
the type of the objectobject
- The object to testclazz
- The classpublic void testNothing()
protected void setValueForField(java.lang.Object forObject, java.lang.String fieldName, java.lang.Object toSet)
fieldName
- -
the name of the fieldtoSet
- -
the value to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |