|
SOAj Consolidated |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
info.soaj.core.unittest.SjBaseOutsideContainerTestCase
public abstract class SjBaseOutsideContainerTestCase
Base test case.
Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com .
| Field Summary | |
|---|---|
protected java.lang.String |
descriptorDocumentStatus
Introduces state to test case. |
protected static java.lang.String |
NO_DESCRIPTOR_DOCUMENT_REQUIRED
Used to indicate no descriptor document should be loaded. |
protected long |
startTime
Start time. |
protected static java.lang.String |
USE_DEFAULT_DESCRIPTOR_DOCUMENT
Used to indicate the default descriptor document should be loaded. |
| Constructor Summary | |
|---|---|
SjBaseOutsideContainerTestCase()
Constructor |
|
SjBaseOutsideContainerTestCase(java.lang.String name)
Constructor |
|
| Method Summary | ||
|---|---|---|
protected static boolean |
assertException(java.lang.Class<?> expectedExceptionClass,
java.lang.Exception exception)
Assert that a specified throwable was thrown. |
|
protected static boolean |
assertExceptionContext(java.lang.Class<?> expectedClassContext,
java.lang.String expectedMethodContext,
SjInterfaceThrowable actualException)
Assert that a throwable was thrown from the expected class and method. |
|
protected static
|
fail(java.lang.Class<T> throwable)
Fails a test expecting an exception. |
|
private void |
init()
This method initializes cache. |
|
protected abstract java.lang.String |
initCB()
This callback method is invoked upon construction and establishes the descriptor document used for each unit test method following the clearing of plugin cache. |
|
protected void |
setUp()
This callback method sets up the test fixture for each unit test method. |
|
protected void |
tearDown()
This callback method tears down the test fixture for each unit test method. |
|
| 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, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String USE_DEFAULT_DESCRIPTOR_DOCUMENT
protected static final java.lang.String NO_DESCRIPTOR_DOCUMENT_REQUIRED
protected java.lang.String descriptorDocumentStatus
protected long startTime
| Constructor Detail |
|---|
public SjBaseOutsideContainerTestCase()
public SjBaseOutsideContainerTestCase(java.lang.String name)
name - | Method Detail |
|---|
private void init()
protected abstract java.lang.String initCB()
This callback method is invoked upon construction and establishes the descriptor document used for each unit test method following the clearing of plugin cache.
Many unit tests do not have plugin activation dependencies and therefore do not require descriptor document parsing. In that case, return:
----> NO_DESCRIPTOR_DOCUMENT_REQUIREDIf the default descriptor document is required then return:
----> USE_DEFAULT_DESCRIPTOR_DOCUMENTIf a custom descriptor document (on the classpath) is needed then return a
String similar to:
----> "soaj-myplugin-example-properties-test.xml"
protected void setUp()
throws java.lang.Exception
initCB method.
setUp in class junit.framework.TestCasejava.lang.Exception
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionprotected static <T extends java.lang.Throwable> void fail(java.lang.Class<T> throwable)
T - throwable -
protected static boolean assertExceptionContext(java.lang.Class<?> expectedClassContext,
java.lang.String expectedMethodContext,
SjInterfaceThrowable actualException)
expectedClassContext - expectedMethodContext - actualException -
protected static boolean assertException(java.lang.Class<?> expectedExceptionClass,
java.lang.Exception exception)
expectedExceptionClass - exception -
|
SOAj Consolidated |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2006 - 2009 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.