Search in sources :

Example 1 with TextSearchRequest

use of org.devgateway.ocds.web.rest.controller.request.TextSearchRequest in project ocvn by devgateway.

the class OrganizationEndpointsTest method testOrganizationSearchText.

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

Example 2 with TextSearchRequest

use of org.devgateway.ocds.web.rest.controller.request.TextSearchRequest in project ocvn by devgateway.

the class OrganizationEndpointsTest method testSupplierSaerchText.

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

Example 3 with TextSearchRequest

use of org.devgateway.ocds.web.rest.controller.request.TextSearchRequest in project ocvn by devgateway.

the class OrganizationEndpointsTest method testBuyerSearchText.

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

Example 4 with TextSearchRequest

use of org.devgateway.ocds.web.rest.controller.request.TextSearchRequest in project ocvn by devgateway.

the class VNImportAndEndpointsTest method testProcuringEntitySearchController.

@Test
public void testProcuringEntitySearchController() {
    List<Organization> procuringEntities = procuringEntitySearchController.searchText(new TextSearchRequest());
    Assert.assertEquals(3, procuringEntities.size(), 0);
}
Also used : TextSearchRequest(org.devgateway.ocds.web.rest.controller.request.TextSearchRequest) Organization(org.devgateway.ocds.persistence.mongo.Organization) Test(org.junit.Test) AbstractWebTest(org.devgateway.toolkit.web.AbstractWebTest)

Example 5 with TextSearchRequest

use of org.devgateway.ocds.web.rest.controller.request.TextSearchRequest in project ocvn by devgateway.

the class OrganizationEndpointsTest method testProcuringEntitySearchText.

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

Aggregations

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