biz.xsoftware.mock.testcase
Class MockTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by biz.xsoftware.mock.testcase.MockTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class MockTestCase
extends junit.framework.TestCase

This is a special test case that does two things

  1. Verifies logs with either of the following
    1. Verifies there are no warning logs
    2. Verifies warning logs exist as they should exist
  2. For mocks created using MockTestCase.createMock, this test case will verify in teardown that no more methods were called on the mock


Constructor Summary
MockTestCase()
           
MockTestCase(String name)
           
 
Method Summary
 void runBare()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, setName, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockTestCase

public MockTestCase()

MockTestCase

public MockTestCase(String name)
Method Detail

runBare

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