站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

TestRegEx - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.cms
Class TestRegEx

java.lang.Object
  extended byTestCase
      extended byorg.jboss.portal.test.cms.TestRegEx

public class TestRegEx
extends TestCase

Tests for the CMS Regex when retrieving stored content.

Author:
Roy Russo
See Also:
Serialized Form

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

HTMLHeaderFile

java.lang.String HTMLHeaderFile

HTMLHeaderFile_Good

java.lang.String HTMLHeaderFile_Good

URI_schemeRegex

private static final java.lang.String URI_schemeRegex
See Also:
Constant Field Values

URI_ignoreRegex

private static final 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).

See Also:
Constant Field Values

regex

private static final java.lang.String regex
See Also:
Constant Field Values

HTMLStripperRegex

private static final java.lang.String HTMLStripperRegex
Removes header content, and leaves content between body tags

See Also:
Constant Field Values

RELATIVE_URI_PATTERN

private static final java.util.regex.Pattern RELATIVE_URI_PATTERN

STRIP_TAGS_PATTERN

private static final java.util.regex.Pattern STRIP_TAGS_PATTERN
Constructor Detail

TestRegEx

public TestRegEx()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

testHTMLPageHeaderRewrite

public void testHTMLPageHeaderRewrite()
                               throws java.lang.Exception
Tests HTML rewriting of header content and links in CMSPortlet.

Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

buildURL

private java.lang.String buildURL(java.lang.String path)
Faking it.