Search in sources :

Example 1 with Planning

use of org.devgateway.ocds.persistence.mongo.Planning in project ocvn by devgateway.

the class RecordRepositoryTest method getRelease2.

private Release getRelease2() {
    final Release release = new Release();
    release.setOcid(ocid);
    final Planning planning = new Planning();
    release.setPlanning(planning);
    final Budget budget = new Budget();
    planning.setBudget(budget);
    final Amount amount = new Amount();
    amount.setAmount(BigDecimal.valueOf(2345));
    amount.setCurrency("USD");
    budget.setAmount(amount);
    budget.setDescription("Some description 2");
    budget.setProject("A nice project! 2");
    budget.setSource("The source! 2");
    final Award award1 = new Award();
    award1.setDescription("SoMe AwArD 2");
    award1.setId("2");
    release.getAwards().add(award1);
    final Award award2 = new Award();
    award2.setDescription("Some award3");
    award2.setId("3");
    release.getAwards().add(award2);
    return release;
}
Also used : Award(org.devgateway.ocds.persistence.mongo.Award) Amount(org.devgateway.ocds.persistence.mongo.Amount) Budget(org.devgateway.ocds.persistence.mongo.Budget) Planning(org.devgateway.ocds.persistence.mongo.Planning) Release(org.devgateway.ocds.persistence.mongo.Release)

Example 2 with Planning

use of org.devgateway.ocds.persistence.mongo.Planning in project ocvn by devgateway.

the class RecordRepositoryTest method getRelease1.

private Release getRelease1() {
    final Release release = new Release();
    release.setOcid(ocid);
    final Planning planning = new Planning();
    release.setPlanning(planning);
    final Budget budget = new Budget();
    planning.setBudget(budget);
    final Amount amount = new Amount();
    amount.setAmount(BigDecimal.valueOf(1234));
    amount.setCurrency("VND");
    budget.setAmount(amount);
    budget.setDescription("Some description 1");
    budget.setProject("A nice project! 1");
    budget.setSource("The source! 1");
    final Award award1 = new Award();
    award1.setDescription("Some award1");
    award1.setId("1");
    release.getAwards().add(award1);
    final Award award2 = new Award();
    award2.setDescription("Some award2");
    award2.setId("2");
    release.getAwards().add(award2);
    return release;
}
Also used : Award(org.devgateway.ocds.persistence.mongo.Award) Amount(org.devgateway.ocds.persistence.mongo.Amount) Budget(org.devgateway.ocds.persistence.mongo.Budget) Planning(org.devgateway.ocds.persistence.mongo.Planning) Release(org.devgateway.ocds.persistence.mongo.Release)

Aggregations

Amount (org.devgateway.ocds.persistence.mongo.Amount)2 Award (org.devgateway.ocds.persistence.mongo.Award)2 Budget (org.devgateway.ocds.persistence.mongo.Budget)2 Planning (org.devgateway.ocds.persistence.mongo.Planning)2 Release (org.devgateway.ocds.persistence.mongo.Release)2