|
||||||||||
| 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.AbstractInterfaceTestCase
org.jboss.jsfunit.analysis.ComponentTestCase
public class ComponentTestCase
A ComponentTestCase.
| Field Summary | |
|---|---|
protected Node |
componentNode
the DOM-node from the config file |
protected String |
configFilePath
the pat of the config file for error reporting |
| Fields inherited from class org.jboss.jsfunit.analysis.AbstractInterfaceTestCase |
|---|
classClass, className, jsfElement |
| Constructor Summary | |
|---|---|
ComponentTestCase(String name,
Node componentNode,
String configFilePath)
Create a new ConverterTestCase. |
|
| Method Summary | |
|---|---|
protected Class<?> |
getClassToExtend()
Return the class to be extended, this munst be implemented by the specific TestCase. |
void |
runTest()
Call the individual test methods. |
void |
testComponentClassAttribute()
Assert that a bean configuration has a class attribute |
void |
testComponentTypeAttribute()
Assert that a bean configuration has a name attribute |
| Methods inherited from class org.jboss.jsfunit.analysis.AbstractInterfaceTestCase |
|---|
setClassName, testClassLoadable, testInterface |
| 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 Node componentNode
protected String configFilePath
| Constructor Detail |
|---|
public ComponentTestCase(String name,
Node componentNode,
String configFilePath)
name - TestCase nameconverterNode - DOM-node of the component definitionconfigFilePath - path to a single config file| Method Detail |
|---|
protected Class<?> getClassToExtend()
AbstractInterfaceTestCase
getClassToExtend in class AbstractInterfaceTestCasepublic void runTest()
AbstractInterfaceTestCase
runTest in class AbstractInterfaceTestCasepublic void testComponentTypeAttribute()
public void testComponentClassAttribute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||