Major test-case cleanup.

- Removed JMock dependency, tests rewritten to use Mockito for stub/mock
- All test should now be using JUnit annotation-style tests
- All modules should now depend on same JUnit version
- Rewrote a few tests to better utilize JUnit annotations
- Fixed a few broken tests
- Code style changes
This commit is contained in:
Harald Kuhr
2011-12-19 14:28:34 +01:00
parent 52a97cfb2f
commit 0c4fc454b9
26 changed files with 1539 additions and 1526 deletions

View File

@@ -15,7 +15,7 @@
*/
package com.twelvemonkeys.util;
import org.jmock.cglib.MockObjectTestCase;
import junit.framework.TestCase;
import java.io.*;
@@ -35,9 +35,9 @@ import java.io.*;
* @author Stephen Colebourne
* @author Anonymous
*/
public abstract class ObjectAbstractTestCase extends MockObjectTestCase {
public abstract class ObjectAbstractTestCase extends TestCase {
//-----------------------------------------------------------------------
/**
* Implement this method to return the object to test.
*

View File

@@ -52,12 +52,5 @@
<version>4.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jmock</groupId>
<artifactId>jmock-cglib</artifactId>
<version>1.0.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>