Search in sources :

Example 6 with BusinessObjectDataSearchResult

use of org.finra.herd.model.api.xml.BusinessObjectDataSearchResult in project herd by FINRAOS.

the class RetentionExpirationExporterWebClientTest method testSearchBusinessObjectDataPageNum1.

@Test
public void testSearchBusinessObjectDataPageNum1() throws Exception {
    retentionExpirationExporterWebClient.getRegServerAccessParamsDto().setUseSsl(false);
    BusinessObjectDataSearchResult result = retentionExpirationExporterWebClient.searchBusinessObjectData(new BusinessObjectDataSearchRequest(), 1);
    assertNotNull(result);
    assertEquals(2, CollectionUtils.size(result.getBusinessObjectDataElements()));
}
Also used : BusinessObjectDataSearchRequest(org.finra.herd.model.api.xml.BusinessObjectDataSearchRequest) BusinessObjectDataSearchResult(org.finra.herd.model.api.xml.BusinessObjectDataSearchResult) Test(org.junit.Test)

Example 7 with BusinessObjectDataSearchResult

use of org.finra.herd.model.api.xml.BusinessObjectDataSearchResult in project herd by FINRAOS.

the class RetentionExpirationExporterWebClientTest method testSearchBusinessObjectDataPageNum2.

@Test
public void testSearchBusinessObjectDataPageNum2() throws Exception {
    retentionExpirationExporterWebClient.getRegServerAccessParamsDto().setUseSsl(false);
    BusinessObjectDataSearchResult result = retentionExpirationExporterWebClient.searchBusinessObjectData(new BusinessObjectDataSearchRequest(), 2);
    assertNotNull(result);
    assertEquals(0, CollectionUtils.size(result.getBusinessObjectDataElements()));
}
Also used : BusinessObjectDataSearchRequest(org.finra.herd.model.api.xml.BusinessObjectDataSearchRequest) BusinessObjectDataSearchResult(org.finra.herd.model.api.xml.BusinessObjectDataSearchResult) Test(org.junit.Test)

Example 8 with BusinessObjectDataSearchResult

use of org.finra.herd.model.api.xml.BusinessObjectDataSearchResult in project herd by FINRAOS.

the class RetentionExpirationExporterWebClientTest method testSearchBusinessObjectDataUseSsl.

@Test
public void testSearchBusinessObjectDataUseSsl() throws Exception {
    retentionExpirationExporterWebClient.getRegServerAccessParamsDto().setUseSsl(true);
    BusinessObjectDataSearchResult result = retentionExpirationExporterWebClient.searchBusinessObjectData(new BusinessObjectDataSearchRequest(), 1);
    assertNotNull(result);
}
Also used : BusinessObjectDataSearchRequest(org.finra.herd.model.api.xml.BusinessObjectDataSearchRequest) BusinessObjectDataSearchResult(org.finra.herd.model.api.xml.BusinessObjectDataSearchResult) Test(org.junit.Test)

Aggregations

BusinessObjectDataSearchResult (org.finra.herd.model.api.xml.BusinessObjectDataSearchResult)8 BusinessObjectDataSearchRequest (org.finra.herd.model.api.xml.BusinessObjectDataSearchRequest)5 Test (org.junit.Test)4 BusinessObjectData (org.finra.herd.model.api.xml.BusinessObjectData)3 ArrayList (java.util.ArrayList)2 BusinessObjectDataSearchKey (org.finra.herd.model.api.xml.BusinessObjectDataSearchKey)2 BusinessObjectDataSearchResultPagingInfoDto (org.finra.herd.model.dto.BusinessObjectDataSearchResultPagingInfoDto)2 StringWriter (java.io.StringWriter)1 URI (java.net.URI)1 HttpServletResponse (javax.servlet.http.HttpServletResponse)1 JAXBContext (javax.xml.bind.JAXBContext)1 Marshaller (javax.xml.bind.Marshaller)1 HttpPost (org.apache.http.client.methods.HttpPost)1 URIBuilder (org.apache.http.client.utils.URIBuilder)1 StringEntity (org.apache.http.entity.StringEntity)1 CloseableHttpClient (org.apache.http.impl.client.CloseableHttpClient)1 NamespacePermission (org.finra.herd.model.annotation.NamespacePermission)1 BusinessObjectDataSearchFilter (org.finra.herd.model.api.xml.BusinessObjectDataSearchFilter)1 BusinessObjectDefinition (org.finra.herd.model.api.xml.BusinessObjectDefinition)1