|
||||||||||
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.ManagedBeanTestCase
public class ManagedBeanTestCase
A TestCase for a single JSF managed bean.
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 Node |
managedBeanNode
DOM node of the managed bean to test |
Constructor Summary | |
---|---|
ManagedBeanTestCase(String name,
String configFilePath,
String managedBeanName,
Node managedBeanNode)
Create a new ManagedBeanTestCase. |
Method Summary | |
---|---|
void |
runTest()
Call the individual test methods. |
void |
testClassAttribute()
Assert that a bean configuration has a class attribute |
void |
testClassLoadable()
Assert that the configured class can be loaded from the classpath |
void |
testDuplicateProperties()
Assert that no duplicate properties are configured for this managed bean. |
void |
testNameAttribute()
Assert that a bean configuration has a name attribute |
void |
testScopeAttribute()
Assert that a bean configuration has a scope attribute |
void |
testSerializableInterface()
Assert that the classes for beans with scope session or application implement the Serialized interface as per JSF specification. |
void |
testValidScope()
|
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 Node managedBeanNode
protected Class<?> managedBeanClass
Constructor Detail |
---|
public ManagedBeanTestCase(String name, String configFilePath, String managedBeanName, Node managedBeanNode)
name
- The name of the test-case in the JUnit test-hierarchyconfigFilePath
- path to a single config filemanagedBeanName
- the name of the bean to build the test suite formanagedBeanNode
- the DOM node containing the managed beanMethod Detail |
---|
public void runTest()
runTest
in class junit.framework.TestCase
public void testNameAttribute()
public void testClassAttribute()
public void testScopeAttribute()
public void testClassLoadable()
public void testValidScope()
public void testSerializableInterface()
public void testDuplicateProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |