use of org.hippoecm.hst.core.component.HstParameterInfoProxyFactoryImpl in project hippo by NHS-digital-website.
the class ApiCatalogueComponentTest method givenRequestWithApiCatalogueAsContentBean.
private void givenRequestWithApiCatalogueAsContentBean() {
hstContainerUrl = new HstContainerURLImpl();
hstRequestContext = new MockHstRequestContext();
hstRequestContext.setSession(session);
hstRequestContext.setParameterInfoProxyFactory(new HstParameterInfoProxyFactoryImpl());
hstRequestContext.setContentBean(apiCatalogueDocument);
hstRequestContext.setBaseURL(hstContainerUrl);
ModifiableRequestContextProvider.set(hstRequestContext);
request = new MockHstRequest();
request.setRequestContext(hstRequestContext);
request.setRequestURL(new StringBuffer("http://localhost:8080/site/developer/api-catalogue"));
}
use of org.hippoecm.hst.core.component.HstParameterInfoProxyFactoryImpl in project hippo by NHS-digital-website.
the class SearchPageComponentTest method setUp.
@Before
public void setUp() {
HstServices.setComponentManager(new MockComponentManager());
mockHstRequestContext = new MockHstRequestContext();
mockHstRequestContext.setParameterInfoProxyFactory(new HstParameterInfoProxyFactoryImpl());
ModifiableRequestContextProvider.set(mockHstRequestContext);
underTest = new SearchPageComponent(graphProvider, bloomreachSearchProvider, "applicationId", "redirectUri", "baseUri");
underTest.init(new MockServletContext(), new MockComponentConfiguration());
}
Aggregations