org.jbpm.test
Class BaseJbpmTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jbpm.test.BaseJbpmTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
JbpmTestCase

public abstract class BaseJbpmTestCase
extends junit.framework.TestCase

base class for jbpm test cases. When this class is loaded (defined), then a search for a logging.properties file will be done. If a logging.properties file is present in the root of the classpath, it will be used to initialize the java.util.logging logging framework. If this logging.properties contains property 'redirect.commons.logging' then all commons logging will be redirected to java.util.logging during this logging initialization. Apart from logging initialization, this class will add some logging to setUp and tearDown. If the JbpmLogFormatter is used, it will display multiple threads with indentation.

Author:
Tom Baeyens

Field Summary
protected static org.jbpm.internal.log.Log log
           
 
Constructor Summary
BaseJbpmTestCase()
           
 
Method Summary
 void assertTextPresent(java.lang.String expected, java.lang.String value)
           
protected  void runTest()
           
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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
 

Field Detail

log

protected static org.jbpm.internal.log.Log log
Constructor Detail

BaseJbpmTestCase

public BaseJbpmTestCase()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

assertTextPresent

public void assertTextPresent(java.lang.String expected,
                              java.lang.String value)

runTest

protected void runTest()
                throws java.lang.Throwable
Overrides:
runTest in class junit.framework.TestCase
Throws:
java.lang.Throwable


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.