private RSSPortlet rssPortlet;
@Override
public void setUp()
{
servletContext = new MockServletContext(new DefaultResourceLoader());
servletConfig = new MockServletConfig(servletContext);
((MockServletConfig) servletConfig).addInitParameter("spring-configuration", "/test-spring-init-servlet-beans.xml");
springInitServlet = new SpringInitServlet();
try
{
springInitServlet.init(servletConfig);
}
catch (ServletException e)
{
fail("Failed to initialize spring init servlet: " + e);
}
portletContext = new MockPortletContext(new DefaultResourceLoader());
portletConfig = new MockPortletConfig(portletContext);
((MockPortletConfig) portletConfig).addInitParameter("stylesheet", "/test-rss.xsl");
ResourceBundle bundle = new ListResourceBundle()
{
protected Object[][] getContents()