com.atlassian.jira.local
Class Junit3ListeningTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.jira.local.Junit3ListeningTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class Junit3ListeningTestCase
extends junit.framework.TestCase

A Junit3 TestCase that participates in the listener program. Without this class as a base class (for JUnit3) there is no way to get events about when tests run because neither IDEA nor Surefire have a way to inject a RunListener into the test world.

Since:
v4.2

Constructor Summary
Junit3ListeningTestCase()
           
Junit3ListeningTestCase(String name)
           
 
Method Summary
 void runBare()
           
protected  void runBareReImplementation()
          We re-implement TestCase because JUnit refuses to allow us into its world!

How do we reimplemnent you ask? Via that trusty AOP method called copy and paste

 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Junit3ListeningTestCase

public Junit3ListeningTestCase()

Junit3ListeningTestCase

public Junit3ListeningTestCase(String name)
Method Detail

runBare

public void runBare()
             throws Throwable
Overrides:
runBare in class junit.framework.TestCase
Throws:
Throwable

runBareReImplementation

protected void runBareReImplementation()
                                throws Throwable
We re-implement TestCase because JUnit refuses to allow us into its world!

How do we reimplemnent you ask? Via that trusty AOP method called copy and paste

Throws:
Throwable - because stuff went south!


Copyright © 2002-2014 Atlassian. All Rights Reserved.