org.fest.swing.testng.testcase
Class FestSwingTestngTestCase

java.lang.Object
  extended by org.fest.swing.testing.FestSwingTestCaseTemplate
      extended by org.fest.swing.testng.testcase.FestSwingTestngTestCase

public abstract class FestSwingTestngTestCase
extends FestSwingTestCaseTemplate

Understands a template for test cases that use FEST-Swing and TestNG. 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
FestSwingTestngTestCase()
           
 
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.
 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

FestSwingTestngTestCase

public FestSwingTestngTestCase()
Method Detail

setUpOnce

public 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-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.