Search in sources :

Example 1 with XForm

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());
}
Also used : XForm(com.opentext.ia.sdk.dto.XForm) ResultMaster(com.opentext.ia.sdk.dto.result.ResultMaster) SearchComposition(com.opentext.ia.sdk.dto.SearchComposition) AllSearchComponents(com.opentext.ia.sdk.dto.result.AllSearchComponents) Test(org.junit.jupiter.api.Test)

Example 2 with XForm

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;
}
Also used : XForm(com.opentext.ia.sdk.dto.XForm)

Aggregations

XForm (com.opentext.ia.sdk.dto.XForm)2 SearchComposition (com.opentext.ia.sdk.dto.SearchComposition)1 AllSearchComponents (com.opentext.ia.sdk.dto.result.AllSearchComponents)1 ResultMaster (com.opentext.ia.sdk.dto.result.ResultMaster)1 Test (org.junit.jupiter.api.Test)1