Search in sources :

Example 1 with OrganizationSearchRequest

use of org.devgateway.ocds.web.rest.controller.request.OrganizationSearchRequest in project oc-explorer by devgateway.

the class OrganizationEndpointsTest method testBuyerSearchText.

@Test
public void testBuyerSearchText() {
    final OrganizationSearchRequest osr = new OrganizationSearchRequest();
    osr.setText("Development");
    final List<Organization> organizations = buyerSearchController.searchText(osr);
    Assert.assertEquals(1, organizations.size(), 0);
}
Also used : Organization(org.devgateway.ocds.persistence.mongo.Organization) OrganizationSearchRequest(org.devgateway.ocds.web.rest.controller.request.OrganizationSearchRequest) Test(org.junit.Test) AbstractWebTest(org.devgateway.toolkit.web.AbstractWebTest)

Example 2 with OrganizationSearchRequest

use of org.devgateway.ocds.web.rest.controller.request.OrganizationSearchRequest in project oc-explorer by devgateway.

the class OrganizationEndpointsTest method testProcuringEntitySearchText.

@Test
public void testProcuringEntitySearchText() {
    final OrganizationSearchRequest osr = new OrganizationSearchRequest();
    osr.setText("Development");
    final List<Organization> organizations = procuringEntitySearchController.searchText(osr);
    Assert.assertEquals(1, organizations.size(), 0);
}
Also used : Organization(org.devgateway.ocds.persistence.mongo.Organization) OrganizationSearchRequest(org.devgateway.ocds.web.rest.controller.request.OrganizationSearchRequest) Test(org.junit.Test) AbstractWebTest(org.devgateway.toolkit.web.AbstractWebTest)

Example 3 with OrganizationSearchRequest

use of org.devgateway.ocds.web.rest.controller.request.OrganizationSearchRequest in project oc-explorer by devgateway.

the class OrganizationEndpointsTest method testOrganizationSearchText.

@Test
public void testOrganizationSearchText() {
    final OrganizationSearchRequest osr = new OrganizationSearchRequest();
    osr.setText("Development");
    final List<Organization> organizations = organizationSearchController.searchText(osr);
    Assert.assertEquals(1, organizations.size(), 0);
}
Also used : Organization(org.devgateway.ocds.persistence.mongo.Organization) OrganizationSearchRequest(org.devgateway.ocds.web.rest.controller.request.OrganizationSearchRequest) Test(org.junit.Test) AbstractWebTest(org.devgateway.toolkit.web.AbstractWebTest)

Example 4 with OrganizationSearchRequest

use of org.devgateway.ocds.web.rest.controller.request.OrganizationSearchRequest in project oc-explorer by devgateway.

the class OrganizationEndpointsTest method testSupplierSaerchText.

@Test
public void testSupplierSaerchText() {
    final OrganizationSearchRequest osr = new OrganizationSearchRequest();
    osr.setText("Development");
    final List<Organization> organizations = supplierSearchController.searchText(osr);
    Assert.assertEquals(0, organizations.size(), 0);
}
Also used : Organization(org.devgateway.ocds.persistence.mongo.Organization) OrganizationSearchRequest(org.devgateway.ocds.web.rest.controller.request.OrganizationSearchRequest) Test(org.junit.Test) AbstractWebTest(org.devgateway.toolkit.web.AbstractWebTest)

Aggregations

Organization (org.devgateway.ocds.persistence.mongo.Organization)4 OrganizationSearchRequest (org.devgateway.ocds.web.rest.controller.request.OrganizationSearchRequest)4 AbstractWebTest (org.devgateway.toolkit.web.AbstractWebTest)4 Test (org.junit.Test)4