public class HtmlParserContentTransformerTest extends AbstractContentTransformerTest
HtmlParserContentTransformerctx, mimetypeService, QUICK_CONTENT, serviceRegistry, transformerDebug| Constructor and Description |
|---|
HtmlParserContentTransformerTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIsTransformable() |
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 |
testEncodingHandling()
Checks that we correctly handle text in different encodings,
no matter if the encoding is specified on the Content Property
or in a meta tag within the HTML itself.
|
void |
testSetUp()
Check that all objects are present
|
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.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 testSetUp()
throws java.lang.Exception
AbstractContentTransformerTesttestSetUp in class AbstractContentTransformerTestjava.lang.Exceptionpublic void checkIsTransformable()
throws java.lang.Exception
java.lang.Exceptionpublic void testEncodingHandling()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.