replay(result);
return result;
}
private JsUri mockJsUri(boolean debug) {
JsUri result = createMock(JsUri.class);
expect(result.isDebug()).andReturn(debug).anyTimes();
expect(result.getCompileMode()).andReturn(JsCompileMode.CONCAT_COMPILE_EXPORT_ALL).anyTimes();
expect(result.getStatus()).andReturn(UriStatus.VALID_UNVERSIONED).anyTimes();
expect(result.getContainer()).andReturn("container").anyTimes();
expect(result.getContext()).andReturn(RenderingContext.CONFIGURED_GADGET).anyTimes();
expect(result.getRefresh()).andReturn(1000).anyTimes();
expect(result.isNoCache()).andReturn(false).anyTimes();
expect(result.getGadget()).andReturn("http://foo.com/g.xml").anyTimes();
expect(result.getLibs()).andReturn(ImmutableList.<String>of()).anyTimes();
expect(result.getLoadedLibs()).andReturn(ImmutableList.<String>of()).anyTimes();
expect(result.getOnload()).andReturn("foo").anyTimes();
expect(result.isJsload()).andReturn(true).anyTimes();
expect(result.isNohint()).andReturn(true).anyTimes();
expect(result.getOrigUri()).andReturn(null).anyTimes();
expect(result.getRepository()).andReturn(null).anyTimes();
expect(result.getExtensionParams()).andReturn(null).anyTimes();
replay(result);
return result;
}