org.fest.swing.junit.testcase
Class FestSwingJUnitTestCase

java.lang.Object
  extended by org.fest.swing.testing.FestSwingTestCaseTemplate
      extended by org.fest.swing.junit.testcase.FestSwingJUnitTestCase

public abstract class FestSwingJUnitTestCase
extends FestSwingTestCaseTemplate

Understands a template for test cases that use FEST-Swing and JUnit. This template installs a FailOnThreadViolationRepaintManager to catch violations of Swing thread rules and manages both creation and clean up of a Robot.

Since:
1.1
Author:
Alex Ruiz

Constructor Summary
FestSwingJUnitTestCase()
           
 
Method Summary
protected abstract  void onSetUp()
          Subclasses need set up their own test fixture in this method.
protected  void onTearDown()
          Subclasses need to clean up resources in this method.
 void setUp()
          Sets up this test's fixture, starting from creation of a new Robot.
static void setUpOnce()
          Installs a FailOnThreadViolationRepaintManager to catch violations of Swing threading rules.
 void tearDown()
          Cleans up any resources used in this test.
 
Methods inherited from class org.fest.swing.testing.FestSwingTestCaseTemplate
cleanUp, robot, setUpRobot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FestSwingJUnitTestCase

public FestSwingJUnitTestCase()
Method Detail

setUpOnce

public static final void setUpOnce()
Installs a FailOnThreadViolationRepaintManager to catch violations of Swing threading rules.


setUp

public final void setUp()
Sets up this test's fixture, starting from creation of a new Robot.

See Also:
FestSwingTestCaseTemplate.setUpRobot(), onSetUp()

onSetUp

protected abstract void onSetUp()
Subclasses need set up their own test fixture in this method. This method is called after executing setUp().


tearDown

public final void tearDown()
Cleans up any resources used in this test. After calling onTearDown(), this method cleans up resources used by this test's Robot.

See Also:
FestSwingTestCaseTemplate.cleanUp(), onTearDown()

onTearDown

protected void onTearDown()
Subclasses need to clean up resources in this method. This method is called before executing tearDown().



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