|
||||||||||
| 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.faktorips.runtime.IpsTestCase
public abstract class IpsTestCase
Base class for IPS test cases.
| Constructor Summary | |
|---|---|
IpsTestCase(String name)
Creates a new test case. |
|
| Method Summary | |
|---|---|
protected abstract void |
execAsserts()
Compares the actual output (created by the business function) with the expected result. |
protected abstract void |
execBusinessFcts()
Executes the business function(s) to test. |
protected DocumentBuilder |
getDocumentBuilder()
|
protected abstract void |
readExpectedResult(Element expResultEl)
Reads the expected result from the given Xml element. |
protected abstract void |
readInput(Element inputEl)
Reads the input for the test from the given Xml element. |
protected void |
run(Document doc)
|
protected void |
run(Element testCaseEl)
|
protected void |
runTest()
Implementation of the JUnit Test method that reads the test case data (input,
expected output) from the test's resource, executes the business functions and compares the
expected result with the actual result. |
| 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, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IpsTestCase(String name)
| Method Detail |
|---|
protected void runTest()
throws Throwable
Test method that reads the test case data (input,
expected output) from the test's resource, executes the business functions and compares the
expected result with the actual result.
runTest in class junit.framework.TestCaseThrowable
protected void run(Document doc)
throws Exception
Exception
protected void run(Element testCaseEl)
throws Exception
Exceptionprotected abstract void readInput(Element inputEl)
protected abstract void readExpectedResult(Element expResultEl)
protected abstract void execBusinessFcts()
throws Exception
Exception - Any exception thrown by the business function is considered as an error.
protected abstract void execAsserts()
throws Exception
Exception
protected DocumentBuilder getDocumentBuilder()
throws ParserConfigurationException
ParserConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||