public abstract class AssertJSwingJUnitTestCase extends AssertJSwingTestCaseTemplate
FailOnThreadViolationRepaintManager to catch violations of Swing thread rules and manages both
creation and clean up of a Robot.| Constructor and Description |
|---|
AssertJSwingJUnitTestCase() |
| Modifier and Type | Method and Description |
|---|---|
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
. |
static void |
setUpOnce()
Installs a
to catch violations of Swing threading rules. |
void |
tearDown()
Cleans up any resources used in this test.
|
static void |
tearDownOnce()
Removes the
again to allow EDT violating and EDT safe
tests in the same suite. |
cleanUp, robot, setUpRobotpublic static final void setUpOnce()
FailOnThreadViolationRepaintManager to catch violations of Swing threading rules.public final void setUp()
throws Exception
Robot.Exception - when the set up of the test fails which results in the complete test failsAssertJSwingTestCaseTemplate.setUpRobot(),
onSetUp()protected abstract void onSetUp()
throws Exception
setUp().Exception - when the set up of the test fails which results in the complete test failspublic static final void tearDownOnce()
FailOnThreadViolationRepaintManager again to allow EDT violating and EDT safe
tests in the same suite.public final void tearDown()
throws Exception
onTearDown(), this method cleans up
resources used by this test's Robot.Exception - when the tear down of the test fails which results in that the test will not be cleaned up properlyAssertJSwingTestCaseTemplate.cleanUp(),
onTearDown()protected void onTearDown()
throws Exception
tearDown().Exception - when the tear down of the test fails which results in that the test will not be cleaned up properlyCopyright © 2014–2020 AssertJ. All rights reserved.