use of com.day.cq.wcm.foundation.forms.FormStructureHelperFactory in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class TextImplTest method setUp.
@Before
public void setUp() {
Page page = context.currentPage(CONTAINING_PAGE);
slingBindings = (SlingBindings) context.request().getAttribute(SlingBindings.class.getName());
slingBindings.put(WCMBindings.CURRENT_PAGE, page);
context.registerService(FormStructureHelperFactory.class, new FormStructureHelperFactory() {
@Override
public FormStructureHelper getFormStructureHelper(Resource formElement) {
return null;
}
});
FormsHelperStubber.createStub();
}
Aggregations