|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
net.firstpartners.rp.BaseTestCase
public abstract class BaseTestCase
Base test class. The base class will responsable for setting the context configuration. In case that a sub-test class need to use a specific application context, this must to return in getContextConfigLocation the context location to be used
Field Summary | |
---|---|
private org.springframework.context.support.AbstractApplicationContext |
context
|
static java.lang.String |
DEFAULT_CONTEXT_CONFIG_LOCATION
|
private java.lang.String |
runningContextDir
|
Constructor Summary | |
---|---|
BaseTestCase()
|
Method Summary | |
---|---|
java.lang.String |
getContexDir()
Get the current running context directory |
org.springframework.context.support.AbstractApplicationContext |
getContext()
Get the a reference to the loaded context |
java.lang.String |
getContextConfigLocation()
Method which must to be implmented by the subtests in case of use a specific application context file |
protected void |
setUp()
Set-up the test case |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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 |
Methods inherited from interface net.firstpartners.rp.IBaseCase |
---|
onSetup |
Field Detail |
---|
public static final java.lang.String DEFAULT_CONTEXT_CONFIG_LOCATION
private org.springframework.context.support.AbstractApplicationContext context
private java.lang.String runningContextDir
Constructor Detail |
---|
public BaseTestCase()
Method Detail |
---|
protected final void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
- If an error occurpublic java.lang.String getContextConfigLocation()
public org.springframework.context.support.AbstractApplicationContext getContext()
public java.lang.String getContexDir()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |