use of uk.ac.bbsrc.tgac.miso.persistence.RunStore in project miso-lims by miso-lims.
the class DefaultRunServiceTest method testProcessNotificationNoChange.
@Test
public void testProcessNotificationNoChange() throws Exception {
Run notificationRun = makeRun();
Predicate<SequencingParameters> filterParameters = (params) -> false;
GetLaneContents getLaneContents = (lane) -> Optional.empty();
assertFalse(sut.processNotification(notificationRun, 1, CONTAINER_MODEL_BARCODE, CONTAINER_SERIAL_NO, SEQUENCER_NAME, filterParameters, getLaneContents, null));
Mockito.verify(runStore, Mockito.times(0)).save(Mockito.any());
}
use of uk.ac.bbsrc.tgac.miso.persistence.RunStore in project miso-lims by miso-lims.
the class DefaultRunServiceTest method testProcessNotificationDontOverwriteUserHealth.
@Test
public void testProcessNotificationDontOverwriteUserHealth() throws Exception {
Run notificationRun = makeRun();
notificationRun.setHealth(HealthType.Running);
Predicate<SequencingParameters> filterParameters = (params) -> false;
GetLaneContents getLaneContents = (lane) -> Optional.empty();
assertFalse(sut.processNotification(notificationRun, 1, CONTAINER_MODEL_BARCODE, CONTAINER_SERIAL_NO, SEQUENCER_NAME, filterParameters, getLaneContents, null));
Mockito.verify(runStore, Mockito.times(0)).save(Mockito.any());
}
Aggregations