com.mucommander.test
Class SingleConditionalTestSuite

java.lang.Object
  extended by junit.framework.TestSuite
      extended by com.mucommander.test.ConditionalTestSuite
          extended by com.mucommander.test.SingleConditionalTestSuite
All Implemented Interfaces:
junit.framework.Test

public abstract class SingleConditionalTestSuite
extends ConditionalTestSuite

SingleConditionalTestSuite is a ConditionalTestSuite that operates on a single test case. It implements populateTestSuite() by adding the TestCase class returned by getTestCaseClass() to the test suite, making subclassing a bit easier.

Author:
Maxence Bernard

Constructor Summary
SingleConditionalTestSuite()
           
 
Method Summary
protected abstract  java.lang.Class getTestCaseClass()
          Returns the Class of the TestCase to be added to this test suite.
protected  void populateTestSuite()
          Populates this test suite with the JUnit tests to be performed.
 
Methods inherited from class com.mucommander.test.ConditionalTestSuite
isEnabled
 
Methods inherited from class junit.framework.TestSuite
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleConditionalTestSuite

public SingleConditionalTestSuite()
Method Detail

populateTestSuite

protected void populateTestSuite()
Description copied from class: ConditionalTestSuite
Populates this test suite with the JUnit tests to be performed. This method is called by ConditionalTestSuite.ConditionalTestSuite() only if this test suite is enabled, as reported by ConditionalTestSuite.isEnabled().

Specified by:
populateTestSuite in class ConditionalTestSuite

getTestCaseClass

protected abstract java.lang.Class getTestCaseClass()
Returns the Class of the TestCase to be added to this test suite. Although it is not enforced, the returned class must extend junit.framework.TestCase.

Returns:
the TestCase class to be added to this test suite


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard