|
||||||||
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.opencms.util.TestCmsHtmlStripper
public class TestCmsHtmlStripper
Test case for
.CmsHtmlStripper
Constructor Summary | |
---|---|
TestCmsHtmlStripper(String arg0)
Default JUnit constructor. |
Method Summary | |
---|---|
void |
testStripHtml()
Tests
with a configuration that only keeps: "b,p,strong,i". |
void |
testStripHtmlBypass()
Tests
with all HTML tags of test files as preserve tags (manual bypass-mode). |
void |
testStripHtmlNewline()
Tests
if it strips newline separators. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestCmsHtmlStripper(String arg0)
arg0
- JUnit parametersMethod Detail |
---|
public void testStripHtml() throws Exception
CmsHtmlStripper.stripHtml(String)
with a configuration that only keeps: "b,p,strong,i".
Exception
- in case the test failspublic void testStripHtmlBypass() throws Exception
CmsHtmlStripper.stripHtml(String)
with all HTML tags of test files as preserve tags (manual bypass-mode).
Exception
- in case the test failspublic void testStripHtmlNewline() throws Exception
CmsHtmlStripper.stripHtml(String)
if it strips newline separators.
Exception
- in case the test fails
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |