|
||||||||||
| 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.jboss.jsfunit.analysis.ManagedPropertyTestCase
public class ManagedPropertyTestCase
A TestCase for a single JSF managed property.
| Field Summary | |
|---|---|
protected String |
configFilePath
path to the config file |
protected Class<?> |
managedBeanClass
class of the managed bean |
protected String |
managedBeanClassName
class name of the managed bean |
protected String |
managedBeanName
name of the managed bean |
protected String |
managedPropertyName
name of the managed bean property |
protected Node |
managedPropertyNode
DOM node of the managed property to test |
| Constructor Summary | |
|---|---|
ManagedPropertyTestCase(String name,
String configFilePath,
String managedBeanName,
String managedBeanClassName,
String managedPropertyName,
Node managedPropertyNode)
Create a new ManagedPropertyTestCase. |
|
| Method Summary | |
|---|---|
void |
runTest()
Call the individual test methods. |
void |
testMapDuplicateKeys()
Assert that the property does not define duplicate map-entries |
void |
testPropertyAccessors()
Assert that a bean class has accessors for the property |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, 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 |
| Field Detail |
|---|
protected String configFilePath
protected String managedBeanName
protected String managedBeanClassName
protected String managedPropertyName
protected Class<?> managedBeanClass
protected Node managedPropertyNode
| Constructor Detail |
|---|
public ManagedPropertyTestCase(String name,
String configFilePath,
String managedBeanName,
String managedBeanClassName,
String managedPropertyName,
Node managedPropertyNode)
name - The name of the test-case in the JUnit test-hierarchyconfigFilePath - path to a single config filemanagedBeanName - the name of the bean to testmanagedBeanClassName - the class name of the bean to testmanagedPropertyName - the name of the property to testmanagedPropertyNode - the DOM node containing the managed bean| Method Detail |
|---|
public void runTest()
runTest in class junit.framework.TestCasepublic void testPropertyAccessors()
public void testMapDuplicateKeys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||