public abstract class IpsTestCase
extends junit.framework.TestCase
| Constructor and Description |
|---|
IpsTestCase(String name)
Creates a new test case.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, setUp, tearDown, toStringpublic IpsTestCase(String name)
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.TestCaseThrowableprotected 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
Exceptionprotected DocumentBuilder getDocumentBuilder() throws ParserConfigurationException
ParserConfigurationExceptionCopyright © 2021. All rights reserved.