org.fest.swing.junit.v4_3_1.runner
Class GUITestRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.fest.swing.junit.v4_3_1.runner.GUITestRunner
Direct Known Subclasses:
GUITestRunner

public class GUITestRunner
extends Runner

Understands a JUnit 4.3.1 test runner that takes a screenshot of a failed GUI test.

Author:
Alex Ruiz, Yvonne Wang

Constructor Summary
GUITestRunner(Class<?> testClass)
          Creates a new GUITestRunner.
 
Method Summary
 Description getDescription()
          Returns a Description showing the tests to be run by the receiver.
 void run(RunNotifier notifier)
          Run the tests for this runner, taking screenshots of failing tests.
 
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

GUITestRunner

public GUITestRunner(Class<?> testClass)
              throws org.junit.internal.runners.InitializationError
Creates a new GUITestRunner.

Parameters:
testClass - the class containing the tests to run.
Throws:
org.junit.internal.runners.InitializationError - if something goes wrong when creating this runner.
Method Detail

run

public void run(RunNotifier notifier)
Run the tests for this runner, taking screenshots of failing tests.

Specified by:
run in class Runner
Parameters:
notifier - will be notified of events while tests are being run, started, finishing, and failing.

getDescription

public Description getDescription()
Returns a Description showing the tests to be run by the receiver.

Specified by:
getDescription in class Runner
Returns:
a Description showing the tests to be run by the receiver.


Copyright © 2007-2010 FEST (Fixtures for Easy Software Testing). All Rights Reserved.