java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.RuntimeCollective.webapps.test.RuntimeTestCase
- All Implemented Interfaces:
- junit.framework.Test
- public class RuntimeTestCase
- extends junit.framework.TestCase
| Fields inherited from class junit.framework.TestCase |
|
| 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 |
RuntimeTestCase
public RuntimeTestCase(java.lang.String name)
main
public static void main(java.lang.String[] args)
- RuntimeTestCase is a basic TestCase, which sets up a database in RuntimeDataSource and RuntimeParameters.
In each module, it should be extended into a ModuleTestCase.
The ModuleTestCase will add module-specific RuntimeParameters, and register the required beans.
Finally, each module will define one or many actual test cases, by extending ModuleTestCase.
When called as an application, this takes the following command line parameters in order:
- default db alias
- JDBC driver class
- max connections
- min connections
- db user
- db password
- db url
- db type eg: postgresql
- page root eg: localhost:8080/se
- webapps home eg: /home/fabrice/java/tomcat/webapps/se
- tomcatHome, eg: /home/fabrice/java/tomcat
Example:
- com.RuntimeCollective.content.test.ContentTestCase implements com.RuntimeCollective.webapps.RuntimeTestCase
- com.RuntimeCollective.content.test.FileTest implements com.RuntimeCollective.content.test.ContentTestCase
- com.RuntimeCollective.content.test.ImageTest implements com.RuntimeCollective.content.test.ContentTestCase
setupRuntime
public static void setupRuntime(java.lang.String[] args)
setUp
protected void setUp()
- Description copied from class:
junit.framework.TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
tearDown
protected void tearDown()
- Description copied from class:
junit.framework.TestCase
- Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.
LogTestSection
public void LogTestSection(java.lang.String message)