org.eclipse.mylyn.wikitext.tests
Class DiscoveryTestSuite

java.lang.Object
  extended by junit.framework.TestSuite
      extended by org.eclipse.mylyn.wikitext.tests.DiscoveryTestSuite
All Implemented Interfaces:
junit.framework.Test, ClassFilter

public class DiscoveryTestSuite
extends junit.framework.TestSuite
implements ClassFilter

a test suite that discovers tests by traversing the classpath looking for test classes that match specific criteria.

Author:
David Green

Constructor Summary
DiscoveryTestSuite(ClassFilter filter)
           
 
Method Summary
protected  void discoverTests(ClassFilter filter)
           
 boolean filter(Class<?> clazz)
          indicate if the class should be filtered.
static boolean inEclipseRuntime()
          indicate if the eclipse runtime is active
 
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

DiscoveryTestSuite

public DiscoveryTestSuite(ClassFilter filter)
Method Detail

discoverTests

protected void discoverTests(ClassFilter filter)

inEclipseRuntime

public static boolean inEclipseRuntime()
indicate if the eclipse runtime is active


filter

public boolean filter(Class<?> clazz)
Description copied from interface: ClassFilter
indicate if the class should be filtered. Filtered classes are excluded.

Specified by:
filter in interface ClassFilter
Parameters:
clazz - the class to test
Returns:
true if the class should be filtered


Copyright © 2011 FuseSource, Corp.. All Rights Reserved.