use of com.opentext.ia.sdk.dto.XForm in project infoarchive-sip-sdk by Enterprise-Content-Management.
the class WhenWorkingWithAllSearchComponenents method shouldUpdateStateWhenSettersAreCalled.
@Test
void shouldUpdateStateWhenSettersAreCalled() {
AllSearchComponents components = new AllSearchComponents();
ResultMaster resultMaster = new ResultMaster();
SearchComposition searchComposition = new SearchComposition();
XForm xform = new XForm();
components.setResultMaster(resultMaster);
components.setSearchComposition(searchComposition);
components.setXform(xform);
assertEquals(searchComposition, components.getSearchComposition());
assertEquals(resultMaster, components.getResultMaster());
assertEquals(xform, components.getXform());
}
use of com.opentext.ia.sdk.dto.XForm in project infoarchive-sip-sdk by Enterprise-Content-Management.
the class PropertiesBasedApplicationConfigurer method createXForm.
private XForm createXForm(String searchName, String compositionName, long version) {
XForm result = new XForm();
result.setForm(configured(resolveTemplatedKey(SEARCH_COMPOSITION_XFORM, searchName, compositionName)));
result.setVersion(version);
return result;
}
Aggregations