org.apache.commons.latka.junit
Class JUnitEventReporter

java.lang.Object
  extended by org.apache.commons.latka.AbstractReporter
      extended by org.apache.commons.latka.junit.JUnitEventReporter
All Implemented Interfaces:
LatkaEventListener

public class JUnitEventReporter
extends AbstractReporter

A Latka reporter that takes the various latka events and adapts them into JUnit Tests. In particular this class handles the request error, failed, skipped and succeeded events

Version:
$Id: JUnitEventReporter.java 155424 2005-02-26 13:09:29Z dirkv $
Author:
Chuck Burdick, dIon Gillard

Constructor Summary
protected JUnitEventReporter(junit.framework.TestResult result)
          Create a JUnitEventReporter, storing the JUnit Test results in the provided object
 
Method Summary
 void reportMessage(ReportMessageEvent event)
          This method is currently ignored by the JUnitEventReporter.
 void requestError(RequestEvent event)
          Process a Latka request error
 void requestFailed(RequestEvent event)
          Process a Latka request failure
 void requestSkipped(RequestEvent event)
          Process a Latka event being skipped
 void requestSucceeded(RequestEvent event)
          Process a Latka request success event
 void suiteCompleted(SuiteEvent event)
          Process a Latka suite completion event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitEventReporter

protected JUnitEventReporter(junit.framework.TestResult result)
Create a JUnitEventReporter, storing the JUnit Test results in the provided object

Parameters:
result - the JUnit TestResult to add failures and errors to
Method Detail

requestError

public void requestError(RequestEvent event)
Process a Latka request error

Parameters:
event - the latka request event that is in error

requestFailed

public void requestFailed(RequestEvent event)
Process a Latka request failure

Parameters:
event - The event describing the request that has failed

requestSkipped

public void requestSkipped(RequestEvent event)
Process a Latka event being skipped

Parameters:
event - The event describing the request that has been skipped

requestSucceeded

public void requestSucceeded(RequestEvent event)
Process a Latka request success event

Parameters:
event - The event describing the request that has succeeded

reportMessage

public void reportMessage(ReportMessageEvent event)
This method is currently ignored by the JUnitEventReporter. It may be implemented later.

Parameters:
event - reportMessage (ignored)

suiteCompleted

public void suiteCompleted(SuiteEvent event)
Process a Latka suite completion event

Parameters:
event - The event describing the suite that has completed


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.