org.backsource.alert
Class AlertReporter

java.lang.Object
  extended byorg.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter
      extended byorg.backsource.alert.AlertReporter
All Implemented Interfaces:
org.apache.tools.ant.taskdefs.optional.junit.JUnitResultFormatter, junit.framework.TestListener, org.apache.tools.ant.taskdefs.optional.junit.XMLConstants

public class AlertReporter
extends org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter

A JUnit reporter that sends reports to the configured Senders.

The senders configuration is fetched from the alert xml file.

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

Field Summary
 
Fields inherited from interface org.apache.tools.ant.taskdefs.optional.junit.XMLConstants
ATTR_ERRORS, ATTR_FAILURES, ATTR_MESSAGE, ATTR_NAME, ATTR_PACKAGE, ATTR_TESTS, ATTR_TIME, ATTR_TYPE, ATTR_VALUE, ERROR, FAILURE, PROPERTIES, PROPERTY, SYSTEM_ERR, SYSTEM_OUT, TESTCASE, TESTSUITE, TESTSUITES
 
Constructor Summary
AlertReporter()
           
 
Method Summary
 void addError(junit.framework.Test test, java.lang.Throwable t)
          Interface TestListener.
 void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
          Interface TestListener for JUnit > 3.4.
 void addFailure(junit.framework.Test test, java.lang.Throwable t)
          Interface TestListener for JUnit <= 3.4.
 void endTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
          The whole testsuite ended, send the reports.
static void main(java.lang.String[] args)
           
 void startTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
          The whole testsuite started.
 
Methods inherited from class org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter
endTest, setOutput, setSystemError, setSystemOutput, startTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertReporter

public AlertReporter()
              throws java.lang.Exception
Method Detail

startTestSuite

public void startTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
                    throws org.apache.tools.ant.BuildException
The whole testsuite started.

Throws:
org.apache.tools.ant.BuildException

endTestSuite

public void endTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
                  throws org.apache.tools.ant.BuildException
The whole testsuite ended, send the reports.

Throws:
org.apache.tools.ant.BuildException

addFailure

public void addFailure(junit.framework.Test test,
                       java.lang.Throwable t)
Interface TestListener for JUnit <= 3.4.

A Test failed.


addFailure

public void addFailure(junit.framework.Test test,
                       junit.framework.AssertionFailedError t)
Interface TestListener for JUnit > 3.4.

A Test failed.


addError

public void addError(junit.framework.Test test,
                     java.lang.Throwable t)
Interface TestListener.

An error occured while running the test.


main

public static void main(java.lang.String[] args)


Copyright © 2002-2004 Backsource. All Rights Reserved.