consciouscode.seedling.junit
Class StandaloneSeedlingTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by consciouscode.junit.TestCase
              extended by consciouscode.seedling.junit.SeedlingTestCase
                  extended by consciouscode.seedling.junit.StandaloneSeedlingTestCase
All Implemented Interfaces:
SeedlingTest, junit.framework.Test

public class StandaloneSeedlingTestCase
extends SeedlingTestCase

A SeedlingTestCase that provides its own "standalone" root, making it easy to write tests over small tree configurations.

The setUp() method constructs a MockConfigTree and a root. Subclasses can use the fields myConfigTree and SeedlingTestCase.myGlobalRoot to perform their tests.

Subclasses are automatically included in the "common" AutoSuite.


Field Summary
protected  MockConfigTree myConfigTree
          The ConfigTree used by the Seedling root.
protected  MockLogger myLog
          The MockLogger used by the Seedling root.
 
Fields inherited from class consciouscode.seedling.junit.SeedlingTestCase
myConfigLoaderSequence, myDefaultEvaluator, myGlobalRoot, myScratchBranch
 
Fields inherited from class consciouscode.junit.TestCase
AUTO_SUITES
 
Constructor Summary
StandaloneSeedlingTestCase()
           
 
Method Summary
protected  NodeProvider rootNodeProvider()
           
 void setUp()
           
 void tearDown()
           
 
Methods inherited from class consciouscode.seedling.junit.SeedlingTestCase
configLoaderSequence, defaultEvaluator, getGlobalRoot, getScratchBranch, globalInstalledPath, globalRequiredPath, setGlobalRoot
 
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, 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

myLog

protected MockLogger myLog
The MockLogger used by the Seedling root. Any unexpected errors logged here will cause test failure.


myConfigTree

protected MockConfigTree myConfigTree
The ConfigTree used by the Seedling root.

Constructor Detail

StandaloneSeedlingTestCase

public StandaloneSeedlingTestCase()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class SeedlingTestCase
Throws:
Exception

rootNodeProvider

protected NodeProvider rootNodeProvider()


Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.