|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.beanutils.BeanComparatorTestCase
public class BeanComparatorTestCase
Test Case for the BeanComparator class.
| Field Summary | |
|---|---|
protected AlphaBean |
alphaBean1
|
protected AlphaBean |
alphaBean2
|
protected TestBean |
bean
The test beans for each test. |
protected BeanComparator |
beanComparator
|
| Constructor Summary | |
|---|---|
BeanComparatorTestCase(String name)
Construct a new instance of this test case. |
|
| Method Summary | |
|---|---|
void |
setUp()
Set up instance variables required by this test case. |
static junit.framework.Test |
suite()
Return the tests included in this test suite. |
void |
tearDown()
Tear down instance variables required by this test case. |
void |
testCompareBeanAgainstSelf()
tests comparing one bean against itself. |
void |
testCompareIdentical()
tests comparing two beans via their name using the default Comparator where they have the same value. |
void |
testCompareOnBooleanProperty()
tests comparing two beans on a boolean property, which is not possible. |
void |
testCompareOnMissingProperty()
tests comparing two beans who don't have a property |
void |
testCompareWithNulls()
tests comparing two beans via their name using the default Comparator, but with one of the beans being null. |
void |
testSetProperty()
tests comparing two beans on a boolean property, then changing the property and testing |
void |
testSimpleCompare()
tests comparing two beans via their name using the default Comparator |
void |
testSimpleCompareInverse()
tests comparing two beans via their name using the default Comparator, but the inverse |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TestBean bean
protected AlphaBean alphaBean1
protected AlphaBean alphaBean2
protected BeanComparator beanComparator
| Constructor Detail |
|---|
public BeanComparatorTestCase(String name)
name - Name of the test case| Method Detail |
|---|
public void setUp()
setUp in class junit.framework.TestCasepublic static junit.framework.Test suite()
public void tearDown()
tearDown in class junit.framework.TestCasepublic void testSimpleCompare()
public void testSimpleCompareInverse()
public void testCompareIdentical()
public void testCompareBeanAgainstSelf()
public void testCompareWithNulls()
public void testCompareOnMissingProperty()
public void testCompareOnBooleanProperty()
public void testSetProperty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||