protected void setUp( ) throws Exception
{
super.setUp();
// Create mocks
mockServices = mock( ContainerServices.class );
mockCCPPProfileService = mock( CCPPProfileService.class );
mockPortalContext = mock( PortalContext.class );
mockPortletContext = mock( PortletContext.class );
mockPortletURLProvider = mock(PortletURLProvider.class);
mockContainer = mock( PortletContainerImpl.class,
new Class[] { String.class, ContainerServices.class },
new Object[] { "Mock Pluto Container", (ContainerServices) mockServices.proxy() } );
window = (PortletWindow) mock( PortletWindow.class ).proxy();
mockHttpServletRequest = mock( HttpServletRequest.class );
mockPortletRequestContext = mock ( PortletRequestContext.class );
mockPortletResponseContext = mock ( PortletRenderResponseContext.class );
mock ( CacheControl.class );
// Constructor expectations for RenderRequestImpl
// mockContainer.expects( atLeastOnce() ).method( "getOptionalContainerServices" ).will( returnValue( mockOptionalServices.proxy() ) );
// mockServices.expects( once() ).method( "getPortalContext" ).will( returnValue( mockPortalContext.proxy() ) );
}
PortletRequestImplTest.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:portals-pluto
作者:
评论列表
文章目录