| com.bm.testsuite.BaseTest
All known Subclasses: com.bm.testsuite.mocked.MockedSessionBeanFixture, com.bm.testsuite.BaseEntityFixture, com.bm.testsuite.PoJoFixture, com.bm.testsuite.BaseSessionBeanFixture,
BaseTest | public class BaseTest extends MockObjectTestCase (Code) | | Superclass of all EJB3unit methods. An extension of junit.framework.TestCase
that adds those methods that we really wish were part of JUnit.
author: Daniel Wiese since: 09.02.2006 |
Method Summary | |
public void | assertCollectionsEqual(Collection<? extends T> a, Collection<? extends T> b) Assert that the two collections are the same irrespective of order. | public static void | assertFalse(String description, boolean condition) Assert that the specified condition is false. | public static void | assertFalse(boolean condition) Assert that the specified condition is false. | public void | assertInstanceOf(String label, T object, Class<? extends T> clazz) Assert that the specified object is an instance of this class. | public void | assertInstanceOf(T object, Class<? extends T> clazz) Assert that the specified object is an instance of this class. | protected void | setValueForField(Object forObject, String fieldName, Object toSet) Sets a value for a field in the tested-bean instance. | public void | testNothing() We donīt want that test fails because htey have no test method. |
BaseTest | public BaseTest(String name)(Code) | | Create an instance.
Parameters: name - The name of the test |
BaseTest | public BaseTest()(Code) | | Default costructor.
|
assertCollectionsEqual | public void assertCollectionsEqual(Collection<? extends T> a, Collection<? extends T> b)(Code) | | Assert that the two collections are the same irrespective of order.
Parameters: a - The first collection Parameters: b - The second collection< Parameters: T - > -the type of the collection |
assertFalse | public static void assertFalse(String description, boolean condition)(Code) | | Assert that the specified condition is false. Older versions of junit
have assertTrue() but not assertFalse so we add it here to be sure that
it is present.
Parameters: description - The failure message to be used if the condition is not false. Parameters: condition - The value to check. |
assertFalse | public static void assertFalse(boolean condition)(Code) | | Assert that the specified condition is false. Older versions of junit
have assertTrue() but not assertFalse so we add it here to be sure that
it is present.
Parameters: condition - The value to check. |
assertInstanceOf | public void assertInstanceOf(String label, T object, Class<? extends T> clazz)(Code) | | Assert that the specified object is an instance of this class.
Parameters: label - A description of the test Parameters: object - The object to test Parameters: clazz - The class< Parameters: T - > -the type of the object |
assertInstanceOf | public void assertInstanceOf(T object, Class<? extends T> clazz)(Code) | | Assert that the specified object is an instance of this class.
Parameters: object - The object to test Parameters: clazz - The class< Parameters: T - > -the type of the object |
setValueForField | protected void setValueForField(Object forObject, String fieldName, Object toSet)(Code) | | Sets a value for a field in the tested-bean instance.
author: Daniel Wiese since: 02.05.2006 Parameters: fieldName - -the name of the field Parameters: toSet - -the value to set |
testNothing | public void testNothing()(Code) | | We donīt want that test fails because htey have no test method.
author: Daniel Wiese since: 23.04.2006 |
|
|