return newMock(RenderResponse.class);
}
public void testParseOptionalDescriptors() throws Exception
{
PortletConfig config = newMock(PortletConfig.class);
PortletContext context = newMock(PortletContext.class);
checkOrder(config, false);
checkOrder(context, false);
expect(config.getPortletName()).andReturn("myportlet").anyTimes();
// Called once in ApplicationPortlet code,
// then inside PortletWebContextInitializer
expect(config.getPortletContext()).andReturn(context).anyTimes();
expect(context.getResource("/WEB-INF/myportlet/hivemodule.xml"))
.andReturn(getClass().getResource("hivemodule-portlet.xml")).anyTimes();
expect(context.getResource("/WEB-INF/hivemodule.xml"))