org.faktorips.runtime.test
Class IpsTestCaseJUnitAdapter

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.faktorips.runtime.test.IpsTestCaseJUnitAdapter
All Implemented Interfaces:
junit.framework.Test, IpsTestListener

public class IpsTestCaseJUnitAdapter
extends junit.framework.TestCase
implements IpsTestListener

Ips test case adapter. Adapter between JUnit test cases and ips test cases.

Author:
Joerg Ortmann

Constructor Summary
IpsTestCaseJUnitAdapter(IpsTestCaseBase ipsTestCase)
           
IpsTestCaseJUnitAdapter(String name)
          Dummy constructor to meet the contract to JUnits test case, this prevents the JUnit warning "has no public constructor TestCase(String name)".
 
Method Summary
 void runTest()
          Runs the ips test case.
 void testFailureOccured(IpsTestFailure f)
           
 void testFinished(IpsTest2 arg0)
           
 void testNothing()
          Dummy test do prevent JUnit "no test found" warning if selecting this test case.
 void testStarted(IpsTest2 test)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IpsTestCaseJUnitAdapter

public IpsTestCaseJUnitAdapter(IpsTestCaseBase ipsTestCase)

IpsTestCaseJUnitAdapter

public IpsTestCaseJUnitAdapter(String name)
Dummy constructor to meet the contract to JUnits test case, this prevents the JUnit warning "has no public constructor TestCase(String name)". By using this constructor the runTest will suppressed. To run this kind of test cases the constructor IpsTestCaseJUnitAdapter(IpsTestCaseBase ipsTestCase) has to be called.

Method Detail

testNothing

public void testNothing()
Dummy test do prevent JUnit "no test found" warning if selecting this test case.


runTest

public void runTest()
             throws Throwable
Runs the ips test case.

Overrides:
runTest in class junit.framework.TestCase
Throws:
Throwable

testStarted

public void testStarted(IpsTest2 test)
Specified by:
testStarted in interface IpsTestListener

testFinished

public void testFinished(IpsTest2 arg0)
Specified by:
testFinished in interface IpsTestListener

testFailureOccured

public void testFailureOccured(IpsTestFailure f)
Specified by:
testFailureOccured in interface IpsTestListener


Copyright © 2015. All rights reserved.