Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.roller.business
Class RollerTestBase  view RollerTestBase download RollerTestBase.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.roller.business.RollerTestBase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
BookmarkManagerTest, NewsfeedManagerTest, RefererManagerTest, UserManagerTest, WeblogManagerTest

public abstract class RollerTestBase
extends junit.framework.TestCase

Base class for Roller backend unit test classes, responsible for creating the appropriate Roller implementation. Roller implementation determined by system property rollerImpl.

Currently the only valid value of rollerImpl is 'castor'.


Field Summary
 org.roller.model.Roller mRoller
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
RollerTestBase()
           
RollerTestBase(java.lang.String name)
           
 
Method Summary
 org.roller.model.Roller getRoller()
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 
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
 

Field Detail

mRoller

public org.roller.model.Roller mRoller
Constructor Detail

RollerTestBase

public RollerTestBase()

RollerTestBase

public RollerTestBase(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


tearDown

protected void tearDown()
                 throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.


getRoller

public org.roller.model.Roller getRoller()
                                  throws org.roller.RollerException