|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object TestCase org.jboss.portal.test.cms.TestRegEx
Tests for the CMS Regex when retrieving stored content.
Field Summary | |
(package private) java.lang.String |
HTMLHeaderFile
|
(package private) java.lang.String |
HTMLHeaderFile_Good
|
private static java.lang.String |
HTMLStripperRegex
Removes header content, and leaves content between body tags |
private static java.lang.String |
regex
|
private static java.util.regex.Pattern |
RELATIVE_URI_PATTERN
|
private static java.util.regex.Pattern |
STRIP_TAGS_PATTERN
|
private static java.lang.String |
URI_ignoreRegex
For our purposes, ignore URIs that start with a scheme idicator, a slash (indicating an absolute path), or a hash sign (# = ASCII hex 23). |
private static java.lang.String |
URI_schemeRegex
|
Constructor Summary | |
TestRegEx()
|
Method Summary | |
private java.lang.String |
buildURL(java.lang.String path)
Faking it. |
void |
setUp()
|
protected void |
tearDown()
|
void |
testHTMLPageHeaderRewrite()
Tests HTML rewriting of header content and links in CMSPortlet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String HTMLHeaderFile
java.lang.String HTMLHeaderFile_Good
private static final java.lang.String URI_schemeRegex
private static final java.lang.String URI_ignoreRegex
private static final java.lang.String regex
private static final java.lang.String HTMLStripperRegex
private static final java.util.regex.Pattern RELATIVE_URI_PATTERN
private static final java.util.regex.Pattern STRIP_TAGS_PATTERN
Constructor Detail |
public TestRegEx()
Method Detail |
public void setUp() throws java.lang.Exception
java.lang.Exception
public void testHTMLPageHeaderRewrite() throws java.lang.Exception
java.lang.Exception
protected void tearDown() throws java.lang.Exception
java.lang.Exception
private java.lang.String buildURL(java.lang.String path)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |