Search in sources :

Example 26 with Organization

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);
}
Also used : Organization(org.devgateway.ocds.persistence.mongo.Organization) Test(org.junit.Test) AbstractWebTest(org.devgateway.toolkit.web.AbstractWebTest)

Example 27 with Organization

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);
}
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 28 with Organization

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);
}
Also used : Organization(org.devgateway.ocds.persistence.mongo.Organization) Test(org.junit.Test) AbstractWebTest(org.devgateway.toolkit.web.AbstractWebTest)

Example 29 with Organization

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);
}
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 30 with Organization

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);
}
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)31 Test (org.junit.Test)20 AbstractWebTest (org.devgateway.toolkit.web.AbstractWebTest)17 Identifier (org.devgateway.ocds.persistence.mongo.Identifier)7 Address (org.devgateway.ocds.persistence.mongo.Address)5 ContactPoint (org.devgateway.ocds.persistence.mongo.ContactPoint)5 TextSearchRequest (org.devgateway.ocds.web.rest.controller.request.TextSearchRequest)5 OrganizationSearchRequest (org.devgateway.ocds.web.rest.controller.request.OrganizationSearchRequest)4 Before (org.junit.Before)4 URI (java.net.URI)3 Amount (org.devgateway.ocds.persistence.mongo.Amount)3 Release (org.devgateway.ocds.persistence.mongo.Release)3 VNTender (org.devgateway.ocvn.persistence.mongo.dao.VNTender)3 AbstractMongoTest (org.devgateway.toolkit.persistence.mongo.AbstractMongoTest)3 URISyntaxException (java.net.URISyntaxException)2 Detail (org.devgateway.ocds.persistence.mongo.Detail)2 VNAward (org.devgateway.ocvn.persistence.mongo.dao.VNAward)2 VNTendererOrganization (org.devgateway.ocvn.persistence.mongo.dao.VNTendererOrganization)2 DBObject (com.mongodb.DBObject)1 Serializable (java.io.Serializable)1