|
||||||||||
| 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
public abstract class AbstractInterfaceTestCase
A TestCase for a single JSF element that needs to extend a certain class.
| Field Summary | |
|---|---|
protected Class<?> |
classClass
class of the classClass |
protected String |
className
name of the className |
protected String |
jsfElement
name of the jsfElement |
| Constructor Summary | |
|---|---|
AbstractInterfaceTestCase(String name,
String jsfElement,
String className)
Create a new AbstractClassExtensionTestCase. |
|
| Method Summary | |
|---|---|
protected abstract Class<?> |
getClassToExtend()
Return the class to be extended, this munst be implemented by the specific TestCase. |
void |
runTest()
Call the individual test methods. |
protected void |
setClassName(String className)
Accessor for the class name. |
void |
testClassLoadable()
Assert that the configured class can be loaded from the classpath |
void |
testInterface()
Assert that the class implements the desired interface as per JSF specification. |
| 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 className
protected String jsfElement
protected Class<?> classClass
| Constructor Detail |
|---|
public AbstractInterfaceTestCase(String name,
String jsfElement,
String className)
name - The name of the test-case in the JUnit test-hierarchyclassName - the name of the className to test| Method Detail |
|---|
public void runTest()
runTest in class junit.framework.TestCasepublic void testClassLoadable()
public void testInterface()
protected void setClassName(String className)
className - protected abstract Class<?> getClassToExtend()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||