public class ContentTransformerRegistryTest extends AbstractContentTransformerTest
ContentTransformerRegistryctx, mimetypeService, QUICK_CONTENT, serviceRegistry, transformerDebug| Constructor and Description |
|---|
ContentTransformerRegistryTest() |
| 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 ContentTransformer |
getTransformer(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options) |
void |
setUp()
Ensures that the temp locations are cleaned out before the tests start
|
void |
testExplicitTransformation()
Set an explicit, and bizarre, transformation.
|
void |
testNullRetrieval() |
void |
testPerformanceRetrieval()
Force some equally reliant transformers to do some work and develop
different average transformation times.
|
void |
testScoredRetrieval() |
void |
testSetUp()
Checks that required objects are present
|
void |
testSimpleRetrieval() |
additionalContentCheck, buildContentReader, getQuickFilenames, isQuickPhraseExpected, isQuickWordsExpected, isTransformationExcluded, loadNamedQuickTestFile, loadQuickTestFile, testAllConversionscountTestCases, 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.Exceptionpublic void testSetUp()
throws java.lang.Exception
testSetUp in class AbstractContentTransformerTestjava.lang.Exceptionprotected ContentTransformer getTransformer(java.lang.String sourceMimetype, java.lang.String targetMimetype, TransformationOptions options)
public void testNullRetrieval()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleRetrieval()
throws java.lang.Exception
java.lang.Exceptionpublic void testPerformanceRetrieval()
throws java.lang.Exception
java.lang.Exceptionpublic void testScoredRetrieval()
throws java.lang.Exception
java.lang.Exceptionpublic void testExplicitTransformation()
protected ContentTransformer getTransformer(java.lang.String sourceMimetype, java.lang.String targetMimetype)
AbstractContentTransformerTestgetTransformer in class AbstractContentTransformerTestsourceMimetype - the sourceMimetype to be testedtargetMimetype - the targetMimetype to be testedCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.