org.apache.commons.vfs2.test
Class AbstractTestSuite

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.extensions.TestDecorator
          extended by junit.extensions.TestSetup
              extended by org.apache.commons.vfs2.test.AbstractTestSuite
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CacheTestSuite, ProviderTestSuite

public abstract class AbstractTestSuite
extends junit.extensions.TestSetup

The suite of tests for a file system.

Author:
Adam Murdoch, Gary D. Gregory

Field Summary
 
Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
  AbstractTestSuite(ProviderTestConfig providerConfig)
          Adds the tests for a file system to this suite.
protected AbstractTestSuite(ProviderTestConfig providerConfig, String prefix, boolean nested)
           
protected AbstractTestSuite(ProviderTestConfig providerConfig, String prefix, boolean nested, boolean addEmptyDir)
           
 
Method Summary
protected  void addBaseTests()
          Adds base tests - excludes the nested test cases.
 void addTests(Class<?> testClass)
          Adds the tests from a class to this suite.
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class junit.extensions.TestSetup
run
 
Methods inherited from class junit.extensions.TestDecorator
basicRun, countTestCases, getTest, 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
 

Constructor Detail

AbstractTestSuite

public AbstractTestSuite(ProviderTestConfig providerConfig)
                  throws Exception
Adds the tests for a file system to this suite.

Throws:
Exception

AbstractTestSuite

protected AbstractTestSuite(ProviderTestConfig providerConfig,
                            String prefix,
                            boolean nested)
                     throws Exception
Throws:
Exception

AbstractTestSuite

protected AbstractTestSuite(ProviderTestConfig providerConfig,
                            String prefix,
                            boolean nested,
                            boolean addEmptyDir)
                     throws Exception
Throws:
Exception
Method Detail

addBaseTests

protected void addBaseTests()
                     throws Exception
Adds base tests - excludes the nested test cases.

Throws:
Exception

addTests

public void addTests(Class<?> testClass)
              throws Exception
Adds the tests from a class to this suite. The supplied class must be a subclass of AbstractProviderTestCase and have a public a no-args constructor. This method creates an instance of the supplied class for each public 'testNnnn' method provided by the class.

Throws:
Exception

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.extensions.TestSetup
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.extensions.TestSetup
Throws:
Exception


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.