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;
}
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;
}