mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-05-21 00:00:01 -04:00
28 lines
810 B
Java
Executable File
28 lines
810 B
Java
Executable File
package com.twelvemonkeys.io;
|
|
|
|
import org.junit.Test;
|
|
|
|
import static org.junit.Assert.*;
|
|
|
|
/**
|
|
* SeekableAbstractTestCase
|
|
* <p/>
|
|
*
|
|
* @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 implements SeekableInterfaceTest {
|
|
|
|
protected abstract Seekable createSeekable();
|
|
|
|
@Test
|
|
public void testFail() {
|
|
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);
|
|
}
|
|
}
|