Class FestSwingJUnitTestCase

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

public abstract class FestSwingJUnitTestCase extends org.fest.swing.testing.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    Subclasses need set up their own test fixture in this method.
    protected void
    Subclasses need to clean up resources in this method.
    final void
    Sets up this test's fixture, starting from creation of a new Robot.
    static final void
    Installs a FailOnThreadViolationRepaintManager to catch violations of Swing threading rules.
    final void
    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 Details

    • FestSwingJUnitTestCase

      public FestSwingJUnitTestCase()
  • Method Details

    • 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:
    • onTearDown

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