use of org.devgateway.ocds.persistence.mongo.FlaggedRelease in project oc-explorer by devgateway.
the class ReleaseFlaggingServiceTest method testI007.
@Test
public void testI007() {
FlaggedRelease release1 = flaggedReleaseRepository.findByOcid("ocds-endpoint-001");
Assert.assertNotNull(release1);
Assert.assertEquals(true, release1.getFlags().getI007().getValue());
Assert.assertEquals(true, release1.getFlags().getI007().getTypes().contains(FlagType.RIGGING));
Assert.assertEquals(1, release1.getFlags().getI007().getTypes().size());
FlaggedRelease release2 = flaggedReleaseRepository.findByOcid("ocds-endpoint-002");
Assert.assertNotNull(release2);
Assert.assertEquals(null, release2.getFlags().getI007().getValue());
Assert.assertEquals(true, release2.getFlags().getI007().getTypes().contains(FlagType.RIGGING));
Assert.assertEquals(1, release2.getFlags().getI007().getTypes().size());
}
use of org.devgateway.ocds.persistence.mongo.FlaggedRelease in project oc-explorer by devgateway.
the class ReleaseFlaggingServiceTest method testI038.
@Test
public void testI038() {
FlaggedRelease release1 = flaggedReleaseRepository.findByOcid("ocds-endpoint-001");
Assert.assertNotNull(release1);
Assert.assertEquals(false, release1.getFlags().getI038().getValue());
Assert.assertEquals(true, release1.getFlags().getI038().getTypes().contains(FlagType.RIGGING));
Assert.assertEquals(1, release1.getFlags().getI038().getTypes().size());
FlaggedRelease release2 = flaggedReleaseRepository.findByOcid("ocds-endpoint-002");
Assert.assertNotNull(release2);
Assert.assertEquals(null, release2.getFlags().getI038().getValue());
Assert.assertEquals(true, release2.getFlags().getI038().getTypes().contains(FlagType.RIGGING));
Assert.assertEquals(1, release2.getFlags().getI038().getTypes().size());
}
Aggregations