|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
consciouscode.junit.TestCase
consciouscode.seedling.junit.SeedlingTestCase
public abstract class SeedlingTestCase
Base class for TestCase
s that make use of a Seedling.
It is assumed that setGlobalRoot(consciouscode.seedling.RootNode)
is called before the test is run.
This is generally handled by a SeedlingTestRunner
.
TestCase
,
TestCase
Field Summary | |
---|---|
protected ConfigLoaderSequence |
myConfigLoaderSequence
|
protected PropertiesConfigEvaluator |
myDefaultEvaluator
|
protected RootNode |
myGlobalRoot
|
protected StandardBranch |
myScratchBranch
|
Fields inherited from class consciouscode.junit.TestCase |
---|
AUTO_SUITES |
Constructor Summary | |
---|---|
SeedlingTestCase()
|
Method Summary | |
---|---|
ConfigLoaderSequence |
configLoaderSequence()
|
protected PropertiesConfigEvaluator |
defaultEvaluator()
|
RootNode |
getGlobalRoot()
|
StandardBranch |
getScratchBranch()
Provides a StandardBranch for testing. |
Object |
globalInstalledPath(String globalPath)
|
Object |
globalRequiredPath(String globalPath)
|
void |
setGlobalRoot(RootNode root)
Set the global root of the Seedling that is to be tested. |
void |
tearDown()
|
Methods inherited from class consciouscode.junit.TestCase |
---|
assertContained, assertEqualContents, assertEqualContents, assertEqualElements, assertEqualElements, assertEqualMembers, assertEquals, assertNotContained, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertPropertyEquals, assertPropertyEquals, assertPropertyEquals, fail, fail, getProperty, loadTestPropertiesFile, projectFile, setProperty, setProperty, setProperty |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 junit.framework.Test |
---|
countTestCases, run |
Field Detail |
---|
protected PropertiesConfigEvaluator myDefaultEvaluator
protected ConfigLoaderSequence myConfigLoaderSequence
protected RootNode myGlobalRoot
protected StandardBranch myScratchBranch
Constructor Detail |
---|
public SeedlingTestCase()
Method Detail |
---|
protected PropertiesConfigEvaluator defaultEvaluator()
public ConfigLoaderSequence configLoaderSequence()
public RootNode getGlobalRoot()
public void setGlobalRoot(RootNode root)
SeedlingTest
SeedlingTestRunner
) before the test is run.
setGlobalRoot
in interface SeedlingTest
public StandardBranch getScratchBranch()
StandardBranch
for testing.
The same instance is returned on each call (to this object).
public Object globalRequiredPath(String globalPath) throws NoSuchNodeException, NodeProvisioningException
NoSuchNodeException
NodeProvisioningException
public Object globalInstalledPath(String globalPath)
public void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |