| com.ibm.emb.junit.EMBTestCaseBase
All known Subclasses: com.ibm.emb.test.MediaFormatTest, com.ibm.emb.test.SignatureTest, com.ibm.emb.test.ProtocolConstraintsTest, com.ibm.emb.test.MediaSegmentTest, com.ibm.emb.test.MediaTest, com.ibm.emb.test.MediaFormatRegistryTest, com.ibm.emb.test.MediaEntityLocalHomeTest, com.ibm.emb.test.MediaEntityLocalTest, com.ibm.emb.test.MediaListenerTest, com.ibm.emb.test.MediaConverterTest, com.ibm.emb.test.MediaHeaderTest, com.ibm.emb.test.MediaConverterSpecTest, com.ibm.emb.test.MetaDataEntityLocalHomeTest, com.ibm.emb.test.MetaDataEntityLocalTest,
EMBTestCaseBase | public class EMBTestCaseBase extends TestCase (Code) | | This class extends junit.TestCase and is the base class for all EMB test
classes, allowing for easier implementations of future extensions. Error,
test, and tracing routines are provided along with the EMBTestConfiguration
singleton, which provides access to configurable properties needed to run the
test cases.
|
EMBTestCaseBase | public EMBTestCaseBase(String name) throws MediaException(Code) | | Constructor for EMBTestCaseBase
|
getByteArrayFromFile | public static byte[] getByteArrayFromFile(File arg) throws IOException(Code) | | returns a byte array of the given file's contents
Returns a byte[] |
logProductError | public void logProductError(String msg)(Code) | | writes a known and reported error to the log if flag is enabled
simplifies tracking of known errors
|
removeFilesInDir | public static void removeFilesInDir(File srcDir) throws IOException(Code) | | removes files in directory used to clean up after tests
|
setUp | protected void setUp() throws Exception(Code) | | initialization of test cases
|
succeed | public void succeed(String msg)(Code) | | Utility function called at the end of a succeeded testcase Event is then
written to the test case log file an aditional message can be appended
|
succeed | public void succeed()(Code) | | Utility Function called at the end of a succeded testcase Event is then
written to the TestCase log file
|
testError | public void testError(String msg)(Code) | | Utility function used to log a test suite error to system out and to the
log file
|
testLog | public void testLog(String msg)(Code) | | Utility function used to write logging information to system out and to a
log file.
|
testTrace | public void testTrace(String msg)(Code) | | Utility function used to write tracing to system out and to a traceFile.
For the more common logging there is an additional function testLog
|
|
|