use of org.nextprot.api.etl.service.impl.StatementTranformerServiceImpl 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);
}
Aggregations