org.jdesktop.test
Class EDTRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by org.jdesktop.test.EDTRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class EDTRunner
extends org.junit.runners.BlockJUnit4ClassRunner

A test runner for JUnit that ensures that all tests are run on the EDT.


Constructor Summary
EDTRunner(Class<?> klass)
          Creates a test runner for the specified test class.
 
Method Summary
 void run(org.junit.runner.notification.RunNotifier notifier)
          
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EDTRunner

public EDTRunner(Class<?> klass)
          throws org.junit.runners.model.InitializationError
Creates a test runner for the specified test class.

Parameters:
klass - the class to test
Throws:
org.junit.runners.model.InitializationError - if a problem occurs during object construction
Method Detail

run

public void run(org.junit.runner.notification.RunNotifier notifier)

Overrides:
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>


Copyright © 2013. All Rights Reserved.