public class EMLTransformerTest extends AbstractContentTransformerTest
EMLTransformer
ctx, mimetypeService, QUICK_CONTENT, serviceRegistry, transformerDebug
Constructor and Description |
---|
EMLTransformerTest() |
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.
|
void |
setUp()
Ensures that the temp locations are cleaned out before the tests start
|
void |
testIsTransformable() |
void |
testNonAsciiRFC822ToText()
Test transforming a non-ascii eml file to text
|
void |
testRFC822ToText()
Test transforming a valid eml file to text
|
additionalContentCheck, buildContentReader, getQuickFilenames, isQuickPhraseExpected, isQuickWordsExpected, isTransformationExcluded, loadNamedQuickTestFile, loadQuickTestFile, testAllConversions, testSetUp
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
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
public void setUp() throws java.lang.Exception
AbstractContentTransformerTest
setUp
in class AbstractContentTransformerTest
java.lang.Exception
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 testedpublic void testIsTransformable() throws java.lang.Exception
java.lang.Exception
public void testRFC822ToText() throws java.lang.Exception
java.lang.Exception
public void testNonAsciiRFC822ToText() throws java.lang.Exception
java.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.