use of uk.ac.bbsrc.tgac.miso.core.data.impl.TargetedSequencing in project miso-lims by miso-lims.
the class DefaultKitDescriptorService method loadChildEntities.
private void loadChildEntities(KitDescriptor kitDescriptor) throws IOException {
Set<TargetedSequencing> maybeManaged = Sets.newHashSet(kitDescriptor.getTargetedSequencing());
kitDescriptor.clearTargetedSequencing();
for (TargetedSequencing ts : maybeManaged) {
if (ts != null && ts.isSaved()) {
kitDescriptor.addTargetedSequencing(targetedSequencingService.get(ts.getId()));
}
}
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.TargetedSequencing in project miso-lims by miso-lims.
the class DefaultLibraryAliquotServiceTest method testDistinctEmptyTargetedSequencingCompatibility.
@Test
public void testDistinctEmptyTargetedSequencingCompatibility() {
TargetedSequencing ts1 = new TargetedSequencing();
TargetedSequencing ts2 = new TargetedSequencing();
addTargetedSequencing(ts2, aliquot);
assertTrue(service.isTargetedSequencingCompatible(ts1, aliquot));
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.TargetedSequencing in project miso-lims by miso-lims.
the class DefaultLibraryAliquotServiceTest method defaultTargetedSequencing.
private TargetedSequencing defaultTargetedSequencing() {
TargetedSequencing ts = new TargetedSequencing();
ts.setId(id);
ts.setAlias(alias);
ts.setDescription(description);
ts.setArchived(archived);
return ts;
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.TargetedSequencing in project miso-lims by miso-lims.
the class DefaultLibraryAliquotServiceTest method testEmptyTargetedSequencingCompatibility.
@Test
public void testEmptyTargetedSequencingCompatibility() {
TargetedSequencing ts = new TargetedSequencing();
addTargetedSequencing(ts, aliquot);
assertTrue(service.isTargetedSequencingCompatible(ts, aliquot));
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.TargetedSequencing in project miso-lims by miso-lims.
the class DefaultLibraryAliquotServiceTest method testDistinctEqualTargetedSequencingCompatibility.
@Test
public void testDistinctEqualTargetedSequencingCompatibility() {
TargetedSequencing ts1 = defaultTargetedSequencing();
TargetedSequencing ts2 = defaultTargetedSequencing();
addTargetedSequencing(ts2, aliquot);
assertTrue(service.isTargetedSequencingCompatible(ts1, aliquot));
}
Aggregations