org.eclipse.swtbot.swt.finder.junit
Class ScreenshotCaptureListener

java.lang.Object
  extended by org.junit.runner.notification.RunListener
      extended by org.eclipse.swtbot.swt.finder.junit.ScreenshotCaptureListener

public final class ScreenshotCaptureListener
extends RunListener

Captures screenshots on failure notifications.

Version:
$Id$
Author:
Hans Schwaebli (Bug 259787)

Constructor Summary
ScreenshotCaptureListener()
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 void testFailure(Failure failure)
           
 
Methods inherited from class org.junit.runner.notification.RunListener
testAssumptionFailure, testFinished, testIgnored, testRunFinished, testRunStarted, testStarted
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenshotCaptureListener

public ScreenshotCaptureListener()
Method Detail

testFailure

public void testFailure(Failure failure)
                 throws Exception
Overrides:
testFailure in class RunListener
Throws:
Exception

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object