Search in sources :

Example 1 with FormStructureHelperFactory

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();
}
Also used : FormStructureHelper(com.day.cq.wcm.foundation.forms.FormStructureHelper) SlingBindings(org.apache.sling.api.scripting.SlingBindings) Resource(org.apache.sling.api.resource.Resource) Page(com.day.cq.wcm.api.Page) FormStructureHelperFactory(com.day.cq.wcm.foundation.forms.FormStructureHelperFactory) Before(org.junit.Before)

Aggregations

Page (com.day.cq.wcm.api.Page)1 FormStructureHelper (com.day.cq.wcm.foundation.forms.FormStructureHelper)1 FormStructureHelperFactory (com.day.cq.wcm.foundation.forms.FormStructureHelperFactory)1 Resource (org.apache.sling.api.resource.Resource)1 SlingBindings (org.apache.sling.api.scripting.SlingBindings)1 Before (org.junit.Before)1