use of org.hippoecm.hst.mock.core.request.MockComponentConfiguration 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