mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-05-23 00:00:05 -04:00
Major test overhaul, now uses JUnit 4 annotation style tests.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.twelvemonkeys.io;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* SeekableAbstractTestCase
|
||||
@@ -9,14 +11,16 @@ import junit.framework.TestCase;
|
||||
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a>
|
||||
* @version $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/test/java/com/twelvemonkeys/io/SeekableAbstractTestCase.java#1 $
|
||||
*/
|
||||
public abstract class SeekableAbstractTestCase extends TestCase implements SeekableInterfaceTest {
|
||||
public abstract class SeekableAbstractTestCase implements SeekableInterfaceTest {
|
||||
|
||||
protected abstract Seekable createSeekable();
|
||||
|
||||
@Test
|
||||
public void testFail() {
|
||||
fail();
|
||||
fail("Do not create stand-alone test classes based on this class. Instead, create an inner class and delegate to it.");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSeekable() {
|
||||
assertTrue(createSeekable() instanceof Seekable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user