use of org.molgenis.data.populate.IdGenerator in project molgenis by molgenis.
the class RestServiceTest method setUpBeforeMethod.
@BeforeMethod
public void setUpBeforeMethod() {
dataService = mock(DataService.class);
idGenerator = mock(IdGenerator.class);
FileStore fileStore = mock(FileStore.class);
fileMetaFactory = mock(FileMetaFactory.class);
entityManager = mock(EntityManager.class);
servletUriComponentsBuilderFactory = mock(ServletUriComponentsBuilderFactory.class);
this.restService = new RestService(dataService, idGenerator, fileStore, fileMetaFactory, entityManager, servletUriComponentsBuilderFactory);
}
use of org.molgenis.data.populate.IdGenerator in project molgenis by molgenis.
the class OntologyTagServiceTest method beforeMethod.
@BeforeMethod
public void beforeMethod() {
config.resetMocks();
chromosomeNameTagEntity = tagFactory.create();
chromosomeNameTagEntity.set(TagMetadata.ID, "1234");
chromosomeNameTagEntity.set(TagMetadata.LABEL, "Chromosome name");
chromosomeNameTagEntity.set(TagMetadata.OBJECT_IRI, "http://edamontology.org/data_0987");
chromosomeNameTagEntity.set(TagMetadata.RELATION_IRI, instanceOf.getIRI());
chromosomeNameTagEntity.set(TagMetadata.RELATION_LABEL, instanceOf.getLabel());
chromosomeNameTagEntity.set(TagMetadata.CODE_SYSTEM, "http://edamontology.org");
geneAnnotationTagEntity = tagFactory.create();
geneAnnotationTagEntity.set(TagMetadata.ID, "4321");
geneAnnotationTagEntity.set(TagMetadata.LABEL, "Gene annotation (chromosome)");
geneAnnotationTagEntity.set(TagMetadata.OBJECT_IRI, "http://edamontology.org/data_0919");
geneAnnotationTagEntity.set(TagMetadata.RELATION_IRI, instanceOf.getIRI());
geneAnnotationTagEntity.set(TagMetadata.RELATION_LABEL, instanceOf.getLabel());
geneAnnotationTagEntity.set(TagMetadata.CODE_SYSTEM, "http://edamontology.org");
IdGenerator idGenerator = mock(IdGenerator.class);
ontologyTagService = new OntologyTagServiceImpl(dataService, ontologyService, tagRepository, idGenerator, tagMetadata);
}
use of org.molgenis.data.populate.IdGenerator in project molgenis by molgenis.
the class SnpEffRunnerTest method beforeMethod.
@BeforeMethod
public void beforeMethod() throws IOException {
jarRunner = mock(JarRunnerImpl.class);
IdGenerator idGenerator = new IdGeneratorImpl();
snpEffRunner = new SnpEffRunner(jarRunner, snpEffAnnotatorSettings, idGenerator, vcfAttributes, effectsMetaData, entityTypeFactory, attributeFactory);
}
use of org.molgenis.data.populate.IdGenerator in project molgenis by molgenis.
the class PostgreSqlTransactionManagerTest method setUpBeforeMethod.
@BeforeMethod
public void setUpBeforeMethod() {
idGenerator = mock(IdGenerator.class);
DataSource dataSource = mock(DataSource.class);
TransactionExceptionTranslatorRegistry transactionExceptionTranslatorRegistry = mock(TransactionExceptionTranslatorRegistry.class);
molgenisTransactionManager = new PostgreSqlTransactionManager(idGenerator, dataSource, transactionExceptionTranslatorRegistry);
}
Aggregations