use of org.devgateway.ocds.persistence.mongo.Organization in project oc-explorer by devgateway.
the class OrganizationEndpointsTest method testOrganizationIdEndpoint.
@Test
public void testOrganizationIdEndpoint() {
final Organization organizationId = organizationSearchController.byId(ORG_ID);
Assert.assertNotNull(organizationId);
}
use of org.devgateway.ocds.persistence.mongo.Organization 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);
}
use of org.devgateway.ocds.persistence.mongo.Organization in project oc-explorer by devgateway.
the class OrganizationEndpointsTest method testProcuringEntityIdEndpoint.
@Test
public void testProcuringEntityIdEndpoint() {
final Organization organizationId = procuringEntitySearchController.byId(ORG_ID);
Assert.assertNotNull(organizationId);
}
use of org.devgateway.ocds.persistence.mongo.Organization 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);
}
use of org.devgateway.ocds.persistence.mongo.Organization 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);
}
Aggregations