|
|||||||||
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.alfresco.repo.content.transform.AbstractContentTransformerTest
org.alfresco.repo.content.transform.ContentTransformerRegistryTest
public class ContentTransformerRegistryTest
ContentTransformerRegistry
Field Summary |
---|
Fields inherited from class org.alfresco.repo.content.transform.AbstractContentTransformerTest |
---|
ctx, mimetypeService, QUICK_CONTENT, serviceRegistry |
Constructor Summary | |
---|---|
ContentTransformerRegistryTest()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class org.alfresco.repo.content.transform.AbstractContentTransformerTest |
---|
additionalContentCheck, buildContentReader, getQuickFilenames, isQuickPhraseExpected, isQuickWordsExpected, isTransformationExcluded, loadNamedQuickTestFile, loadQuickTestFile, testAllConversions |
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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContentTransformerRegistryTest()
Method Detail |
---|
public void setUp() throws java.lang.Exception
AbstractContentTransformerTest
setUp
in class AbstractContentTransformerTest
java.lang.Exception
public void testSetUp() throws java.lang.Exception
testSetUp
in class AbstractContentTransformerTest
java.lang.Exception
protected ContentTransformer getTransformer(java.lang.String sourceMimetype, java.lang.String targetMimetype, TransformationOptions options)
public void testNullRetrieval() throws java.lang.Exception
java.lang.Exception
public void testSimpleRetrieval() throws java.lang.Exception
java.lang.Exception
public void testPerformanceRetrieval() throws java.lang.Exception
java.lang.Exception
public void testScoredRetrieval() throws java.lang.Exception
java.lang.Exception
public void testExplicitTransformation()
protected ContentTransformer getTransformer(java.lang.String sourceMimetype, java.lang.String targetMimetype)
AbstractContentTransformerTest
getTransformer
in class AbstractContentTransformerTest
sourceMimetype
- the sourceMimetype to be testedtargetMimetype
- the targetMimetype to be tested
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |