Package org.fest.swing.junit.testcase
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
onSetUp()
Subclasses need set up their own test fixture in this method.protected void
Subclasses need to clean up resources in this method.final void
setUp()
Sets up this test's fixture, starting from creation of a new
.Robot
static final void
Installs a
to catch violations of Swing threading rules.FailOnThreadViolationRepaintManager
final void
tearDown()
Cleans up any resources used in this test.Methods inherited from class org.fest.swing.testing.FestSwingTestCaseTemplate
cleanUp, robot, setUpRobot
-
Constructor Details
-
FestSwingJUnitTestCase
public FestSwingJUnitTestCase()
-
-
Method Details
-
setUpOnce
public static final void setUpOnce()Installs a
to catch violations of Swing threading rules.FailOnThreadViolationRepaintManager
-
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
, this method cleans up resources used by this test'sonTearDown()
.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()
-