|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jaudiotagger.AbstractTestCase
public abstract class AbstractTestCase
| Field Summary | |
|---|---|
private static EnumMap<ErrorMessage,Pattern> |
ERROR_PATTERNS
Stores a Pattern for each ErrorMessage.Place holders like "{<number>}" will be replaced with ".*". |
| Constructor Summary | |
|---|---|
AbstractTestCase()
|
|
| Method Summary | |
|---|---|
private static boolean |
append(File fromFile1,
File fromFile2,
File toFile)
|
void |
assertErrorMessage(ErrorMessage expected,
String actual)
This method asserts that the given actual message is
constructed with the expected message string. |
static boolean |
copy(File fromFile,
File toFile)
Copy a File |
static File |
copyAudioToTmp(String fileName)
Copy audiofile to processing dir ready for use in test |
static File |
copyAudioToTmp(String fileName,
File newFileName)
Copy audiofile to processing dir ready for use in test, use this if using same file in multiple tests because with junit multithreading can have problemsa otherwise |
static File |
copyAudioToTmp(String tagfile,
String fileName)
Prepends file with tag file in order to create an mp3 with a valid id3 |
void |
setUp()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final EnumMap<ErrorMessage,Pattern> ERROR_PATTERNS
Pattern for each ErrorMessage.
| Constructor Detail |
|---|
public AbstractTestCase()
| Method Detail |
|---|
public void setUp()
setUp in class junit.framework.TestCase
private static boolean append(File fromFile1,
File fromFile2,
File toFile)
public static boolean copy(File fromFile,
File toFile)
fromFile - The existing FiletoFile - The new File
true if and only if the renaming succeeded;
false otherwisepublic static File copyAudioToTmp(String fileName)
fileName -
public static File copyAudioToTmp(String fileName,
File newFileName)
fileName -
public static File copyAudioToTmp(String tagfile,
String fileName)
tagfile - fileName -
public void assertErrorMessage(ErrorMessage expected,
String actual)
actual message is
constructed with the expected message string.
expected - the expected message source.actual - the message to compare against.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||