public abstract class BaseRewriterTestCase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.easymock.IMocksControl |
control |
static String |
DEFAULT_CONCAT_BASE |
static String |
DEFAULT_PROXY_BASE |
protected org.apache.shindig.gadgets.rewrite.ContentRewriterFeature.Config |
defaultRewriterFeature |
protected org.apache.shindig.gadgets.http.HttpResponseBuilder |
fakeResponse |
protected com.google.inject.Injector |
injector |
static String |
MOCK_CONCAT_BASE |
static String |
MOCK_CONTAINER |
static String |
MOCK_PROXY_BASE |
protected org.apache.shindig.gadgets.parse.GadgetHtmlParser |
parser |
protected org.apache.shindig.gadgets.rewrite.ContentRewriterFeature.Factory |
rewriterFeatureFactory |
static Uri |
SPEC_URL |
protected Set<String> |
tags |
protected String |
TAGS |
| Constructor and Description |
|---|
BaseRewriterTestCase() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.shindig.gadgets.spec.GadgetSpec |
createSpecWithoutRewrite() |
static org.apache.shindig.gadgets.spec.GadgetSpec |
createSpecWithRewrite(String include,
String exclude,
String expires,
Set<String> tags) |
static org.apache.shindig.gadgets.spec.GadgetSpec |
createSpecWithRewriteOS9(String[] includes,
String[] excludes,
String expires,
Set<String> tags) |
protected Class<? extends org.apache.shindig.gadgets.parse.GadgetHtmlParser> |
getParserClass() |
protected org.apache.shindig.gadgets.rewrite.ContentRewriterFeature.Factory |
mockContentRewriterFeatureFactory(org.apache.shindig.gadgets.rewrite.ContentRewriterFeature.Config feature) |
static String |
replaceDefaultWithMockServer(String originalText) |
protected org.apache.shindig.gadgets.rewrite.MutableContent |
rewriteContent(org.apache.shindig.gadgets.rewrite.GadgetRewriter rewriter,
String s,
String container) |
protected org.apache.shindig.gadgets.rewrite.MutableContent |
rewriteContent(org.apache.shindig.gadgets.rewrite.GadgetRewriter rewriter,
String s,
String container,
boolean debug,
boolean ignoreCache) |
void |
setUp() |
public static final Uri SPEC_URL
public static final String DEFAULT_PROXY_BASE
public static final String DEFAULT_CONCAT_BASE
public static final String MOCK_CONTAINER
public static final String MOCK_PROXY_BASE
public static final String MOCK_CONCAT_BASE
protected final String TAGS
protected org.apache.shindig.gadgets.rewrite.ContentRewriterFeature.Config defaultRewriterFeature
protected org.apache.shindig.gadgets.rewrite.ContentRewriterFeature.Factory rewriterFeatureFactory
protected org.apache.shindig.gadgets.parse.GadgetHtmlParser parser
protected com.google.inject.Injector injector
protected org.apache.shindig.gadgets.http.HttpResponseBuilder fakeResponse
protected org.easymock.IMocksControl control
protected Class<? extends org.apache.shindig.gadgets.parse.GadgetHtmlParser> getParserClass()
public static org.apache.shindig.gadgets.spec.GadgetSpec createSpecWithRewrite(String include, String exclude, String expires, Set<String> tags) throws org.apache.shindig.gadgets.GadgetException
org.apache.shindig.gadgets.GadgetExceptionpublic static org.apache.shindig.gadgets.spec.GadgetSpec createSpecWithRewriteOS9(String[] includes, String[] excludes, String expires, Set<String> tags) throws org.apache.shindig.gadgets.GadgetException
org.apache.shindig.gadgets.GadgetExceptionpublic static org.apache.shindig.gadgets.spec.GadgetSpec createSpecWithoutRewrite()
throws org.apache.shindig.gadgets.GadgetException
org.apache.shindig.gadgets.GadgetExceptionprotected org.apache.shindig.gadgets.rewrite.ContentRewriterFeature.Factory mockContentRewriterFeatureFactory(org.apache.shindig.gadgets.rewrite.ContentRewriterFeature.Config feature)
protected org.apache.shindig.gadgets.rewrite.MutableContent rewriteContent(org.apache.shindig.gadgets.rewrite.GadgetRewriter rewriter,
String s,
String container)
throws Exception
ExceptionCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.