Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.test
Class RuntimeTestCase  view RuntimeTestCase download RuntimeTestCase.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.RuntimeCollective.webapps.test.RuntimeTestCase
All Implemented Interfaces:
junit.framework.Test

public class RuntimeTestCase
extends junit.framework.TestCase


Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
RuntimeTestCase(java.lang.String name)
           
 
Method Summary
 void LogTestSection(java.lang.String message)
           
static void main(java.lang.String[] args)
          RuntimeTestCase is a basic TestCase, which sets up a database in RuntimeDataSource and RuntimeParameters.
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
static void setupRuntime(java.lang.String[] args)
           
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Constructor Detail

RuntimeTestCase

public RuntimeTestCase(java.lang.String name)
Method Detail

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:

  1. default db alias
  2. JDBC driver class
  3. max connections
  4. min connections
  5. db user
  6. db password
  7. db url
  8. db type eg: postgresql
  9. page root eg: localhost:8080/se
  10. webapps home eg: /home/fabrice/java/tomcat/webapps/se
  11. 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)