public class ArchiveContentTransformerTest extends AbstractContentTransformerTest
ArchiveContentTransformerctx, mimetypeService, QUICK_CONTENT, serviceRegistry, transformerDebug| Constructor and Description |
|---|
ArchiveContentTransformerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected ContentTransformer |
getTransformer(java.lang.String sourceMimetype,
java.lang.String targetMimetype)
Fetches a transformer to test for a given transformation.
|
protected boolean |
isQuickPhraseExpected(java.lang.String targetMimetype)
This method is an extension point for enabling/disabling an assertion that the "quick brown fox"
phrase is present in the transformed content.
|
protected boolean |
isQuickWordsExpected(java.lang.String targetMimetype)
This method is an extension point for enabling/disabling an assertion that the "quick brown fox"
words are each present in the transformed content.
|
void |
setUp()
Ensures that the temp locations are cleaned out before the tests start
|
void |
testIsTransformable() |
void |
testRecursing() |
additionalContentCheck, buildContentReader, getQuickFilenames, isTransformationExcluded, loadNamedQuickTestFile, loadQuickTestFile, testAllConversions, testSetUpcountTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toStringassertEquals, 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, failNotEquals, failNotSame, failSame, formatpublic void setUp()
throws java.lang.Exception
AbstractContentTransformerTestsetUp in class AbstractContentTransformerTestjava.lang.Exceptionprotected ContentTransformer getTransformer(java.lang.String sourceMimetype, java.lang.String targetMimetype)
AbstractContentTransformerTestgetTransformer in class AbstractContentTransformerTestsourceMimetype - the sourceMimetype to be testedtargetMimetype - the targetMimetype to be testedpublic void testIsTransformable()
throws java.lang.Exception
java.lang.Exceptionprotected boolean isQuickPhraseExpected(java.lang.String targetMimetype)
AbstractContentTransformerTestisQuickPhraseExpected in class AbstractContentTransformerTesttargetMimetype - mimetype of the target of the transformationtrue if phrase is expected else false.protected boolean isQuickWordsExpected(java.lang.String targetMimetype)
AbstractContentTransformerTestisQuickWordsExpected in class AbstractContentTransformerTesttargetMimetype - mimetype of the target of the transformationtrue if each word is expected else false.public void testRecursing()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.