Search in sources :

Example 1 with StatementETLServiceImpl

use of org.nextprot.api.etl.service.impl.StatementETLServiceImpl in project nextprot-api by calipho-sib.

the class StatementETLBaseUnitTest method init.

@Before
public void init() {
    MockitoAnnotations.initMocks(this);
    mockIsoMapperService();
    List<Isoform> isoformsNX_P43246 = Arrays.asList(mockIsoform("NX_P43246-1", "Iso 1", true), mockIsoform("NX_P43246-2", "Iso 2", true));
    List<Isoform> isoformsNX_P52701 = Arrays.asList(mockIsoform("NX_P52701-1", "GTBP-N", true), mockIsoform("NX_P52701-2", "GTBP-alt", false), mockIsoform("NX_P52701-3", "Iso 3", false), mockIsoform("NX_P52701-4", "Iso 4", false));
    List<Isoform> isoformsNX_Q15858 = Arrays.asList(mockIsoform("NX_Q15858-1", "Iso 1", true), mockIsoform("NX_Q15858-2", "Iso 2", false), mockIsoform("NX_Q15858-3", "Iso 3", false), mockIsoform("NX_Q15858-4", "Iso 4", false));
    Mockito.when(isoformService.findIsoformsByEntryName("NX_P43246")).thenReturn(isoformsNX_P43246);
    Mockito.when(isoformService.findIsoformsByEntryName("NX_P52701")).thenReturn(isoformsNX_P52701);
    Mockito.when(isoformService.findIsoformsByEntryName("NX_Q15858")).thenReturn(isoformsNX_Q15858);
    statementETLServiceMocked = new StatementETLServiceImpl();
    transformerMockedService = new StatementTranformerServiceImpl();
    transformerMockedService.setIsoformMappingService(new IsoformMappingLocalMockImpl());
    transformerMockedService.setIsoformService(isoformService);
    statementETLServiceMocked.setStatementTransformerService(transformerMockedService);
}
Also used : StatementETLServiceImpl(org.nextprot.api.etl.service.impl.StatementETLServiceImpl) Isoform(org.nextprot.api.core.domain.Isoform) IsoformMappingLocalMockImpl(org.nextprot.api.etl.service.impl.IsoformMappingLocalMockImpl) StatementTranformerServiceImpl(org.nextprot.api.etl.service.impl.StatementTranformerServiceImpl) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 Isoform (org.nextprot.api.core.domain.Isoform)1 IsoformMappingLocalMockImpl (org.nextprot.api.etl.service.impl.IsoformMappingLocalMockImpl)1 StatementETLServiceImpl (org.nextprot.api.etl.service.impl.StatementETLServiceImpl)1 StatementTranformerServiceImpl (org.nextprot.api.etl.service.impl.StatementTranformerServiceImpl)1