|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jbeantester.framework.JBeanTestResults
This object is returned from the test
methods of
JBeanTester.
When returned, they are already populated with all of the raw data
from the tests. The class also contains a number of 'convenience'
methods which process/analyse this data.
Field Summary | |
protected List |
equalsMPassed
The properties that passed the test of algorithmic equality. |
protected List |
equalsPassed
The properties that passed the test of native (==) equality. |
protected List |
inputs
The inputs used in tests. |
static JBeanTestResults |
NO_DFLT_CONSTRUCTOR
This instance is returned when no default constructor is available. |
static JBeanTestResults |
NO_SUCH_CONSTRUCTOR
This instance is returned when a specified constructor does not exist. |
protected int |
numPassedEquals
The number of properties that passed the test of native (==) equality. |
protected int |
numPassedEqualsM
The number of properties that passed the test of algorithmic equality. |
protected List |
outputs
The outputs used in tests. |
protected List |
properties
The properties found and tested. |
protected HashMap |
propertyToIndex
Map of properties to their respective index. |
Constructor Summary | |
protected |
JBeanTestResults(List properties,
List inputs,
List outputs)
Construct an object to contain a set of JavaBean test results. |
Method Summary | |
boolean |
getAllPassedEquals()
Determine if all of the properties passed the ( == ) test. |
boolean |
getAllPassedEqualsM()
Determine if all of the properties passed the ( .equals( ) |
boolean |
getEqualsMPassed(int index)
Gets the value of the specified equalsMPassed . |
boolean |
getEqualsPassed(int index)
Gets the value of the specified equalsPassed . |
int |
getIndexForProperty(String propName)
Obtain the location of the specified property within the result. |
Object |
getInput(int index)
Gets the value of the specified input . |
int |
getNumPassedEquals()
Determine the number of properties that passed the native equality ( == ) test. |
int |
getNumPassedEqualsM()
Determine the number of properties that passed the algorithmic equality ( .equals( ) |
int |
getNumPropsTested()
Determine the number of properties that were tested. |
Object |
getOutput(int index)
Gets the value of the specified output . |
String |
getProperty(int index)
Gets the value of the specified property . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final JBeanTestResults NO_SUCH_CONSTRUCTOR
UnsupportedThrowableException
.
public static final JBeanTestResults NO_DFLT_CONSTRUCTOR
UnsupportedThrowableException
.
protected final List properties
protected final List inputs
protected final List outputs
protected final List equalsPassed
protected final List equalsMPassed
protected int numPassedEquals
protected int numPassedEqualsM
protected final HashMap propertyToIndex
Constructor Detail |
protected JBeanTestResults(List properties, List inputs, List outputs)
properties
- a list of the String
names of the
properties.inputs
- a list of the input objects.outputs
- a list of the output objects.Method Detail |
public int getNumPropsTested()
public int getIndexForProperty(String propName)
propName
- the property to look for.
public boolean getAllPassedEquals()
==
) test.
This test is unlikely to pass as properties requiring primitive data
types as parameters will fail.
public boolean getAllPassedEqualsM()
.equals( ))
test.
This test should return true on a properly formed JavaBean.
- Returns:
- the number of properties that passed.
public int getNumPassedEquals()
==
) test.
public int getNumPassedEqualsM()
.equals( )) test.
- Returns:
- the number of properties that passed.
public String getProperty(int index)
property
.
index
- the location of the element.
properties
.public Object getInput(int index)
input
.
inputs
.public Object getOutput(int index)
output
.
index
- the location of the element.
outputs
.public boolean getEqualsPassed(int index)
equalsPassed
.
This indicates whether or not the corresponding input and output passed
the native equality (==
) test.
index
- the location of the element.
equalsPassed
.public boolean getEqualsMPassed(int index)
equalsMPassed
.
This indicates whether or not the corresponding input and output passed
the algorithmic equality (.equals( )
) test.
index
- the location of the element.
equalsMPassed
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |