junit.extensions.abbot
Class AWTFixtureHelper

java.lang.Object
  extended byjunit.extensions.abbot.AWTFixtureHelper

public class AWTFixtureHelper
extends Object

Provides reusable preservation/restoration of AWT UI/System state. Also handles standardized fixture event logging and catching exceptions on the AWT event dispatch thread (EDT).


Nested Class Summary
static class AWTFixtureHelper.ExceptionCatcher
          Provide access to the most recent exception caught on the dispatch thread.
 
Constructor Summary
AWTFixtureHelper()
          Create an instance of AWTFixtureHelper which makes a snapshot of the current VM state.
 
Method Summary
 Throwable getEventDispatchError()
          Returns the last exception thrown on the event dispatch thread, or null if no such exception has been thrown.
 void restore()
          Restore the state that was preserved when this object was created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTFixtureHelper

public AWTFixtureHelper()
Create an instance of AWTFixtureHelper which makes a snapshot of the current VM state.

Method Detail

getEventDispatchError

public Throwable getEventDispatchError()
Returns the last exception thrown on the event dispatch thread, or null if no such exception has been thrown.


restore

public void restore()
Restore the state that was preserved when this object was created.



Copyright © 2002-2004 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge