use of org.devgateway.ocds.persistence.mongo.FlaggedRelease in project oc-explorer by devgateway.
the class ReleaseFlaggingServiceTest method testI019.
@Test
public void testI019() {
FlaggedRelease release1 = flaggedReleaseRepository.findByOcid("ocds-endpoint-001");
Assert.assertNotNull(release1);
Assert.assertEquals(true, release1.getFlags().getI019().getValue());
Assert.assertEquals(true, release1.getFlags().getI019().getTypes().contains(FlagType.RIGGING));
Assert.assertEquals(1, release1.getFlags().getI019().getTypes().size());
FlaggedRelease release2 = flaggedReleaseRepository.findByOcid("ocds-endpoint-002");
Assert.assertNotNull(release2);
Assert.assertEquals(null, release2.getFlags().getI019().getValue());
Assert.assertEquals(true, release2.getFlags().getI019().getTypes().contains(FlagType.RIGGING));
Assert.assertEquals(1, release2.getFlags().getI019().getTypes().size());
}
use of org.devgateway.ocds.persistence.mongo.FlaggedRelease in project oc-explorer by devgateway.
the class ReleaseFlaggingServiceTest method testI180.
@Test
public void testI180() {
FlaggedRelease release1 = flaggedReleaseRepository.findByOcid("ocds-endpoint-001");
Assert.assertNotNull(release1);
Assert.assertEquals(null, release1.getFlags().getI180().getValue());
Assert.assertEquals(true, release1.getFlags().getI180().getTypes().contains(FlagType.RIGGING));
Assert.assertEquals(1, release1.getFlags().getI180().getTypes().size());
FlaggedRelease release2 = flaggedReleaseRepository.findByOcid("ocds-endpoint-002");
Assert.assertNotNull(release2);
Assert.assertEquals(null, release2.getFlags().getI180().getValue());
Assert.assertEquals(true, release2.getFlags().getI180().getTypes().contains(FlagType.RIGGING));
Assert.assertEquals(1, release2.getFlags().getI180().getTypes().size());
}
use of org.devgateway.ocds.persistence.mongo.FlaggedRelease in project oc-explorer by devgateway.
the class ReleaseFlaggingServiceTest method testI077.
@Test
public void testI077() {
FlaggedRelease release1 = flaggedReleaseRepository.findByOcid("ocds-endpoint-001");
Assert.assertNotNull(release1);
Assert.assertEquals(false, release1.getFlags().getI077().getValue());
Assert.assertEquals(true, release1.getFlags().getI077().getTypes().contains(FlagType.RIGGING));
Assert.assertEquals(1, release1.getFlags().getI077().getTypes().size());
FlaggedRelease release2 = flaggedReleaseRepository.findByOcid("ocds-endpoint-002");
Assert.assertNotNull(release2);
Assert.assertEquals(false, release2.getFlags().getI077().getValue());
Assert.assertEquals(true, release2.getFlags().getI077().getTypes().contains(FlagType.RIGGING));
Assert.assertEquals(1, release2.getFlags().getI077().getTypes().size());
}
use of org.devgateway.ocds.persistence.mongo.FlaggedRelease in project oc-explorer by devgateway.
the class ReleaseFlaggingService method createStubFlagTypes.
/**
* Sets flags on top of a stub empty release. This is just to populate the flags property.
*
* @return the flags property of {@link FlaggedRelease}
*/
public ReleaseFlags createStubFlagTypes() {
FlaggedRelease fr = new FlaggedRelease();
releaseFlagProcessors.forEach(processor -> processor.process(fr));
return fr.getFlags();
}
use of org.devgateway.ocds.persistence.mongo.FlaggedRelease in project ocvn by devgateway.
the class ReleaseFlaggingServiceTest method testI004.
@Test
public void testI004() {
FlaggedRelease release1 = flaggedReleaseRepository.findByOcid("ocds-endpoint-001");
Assert.assertNotNull(release1);
Assert.assertEquals(null, release1.getFlags().getI004().getValue());
FlaggedRelease release2 = flaggedReleaseRepository.findByOcid("ocds-endpoint-002");
Assert.assertNotNull(release2);
Assert.assertEquals(null, release2.getFlags().getI004().getValue());
}
Aggregations