use of com.hartwig.api.SetApi in project pipeline5 by hartwigmedical.
the class ResearchMetadataApiTest method setUp.
@Before
public void setUp() throws Exception {
sampleApi = mock(SampleApi.class);
setApi = mock(SetApi.class);
bucket = mock(Bucket.class);
when(bucket.getName()).thenReturn("bucket");
runApi = mock(RunApi.class);
run = new Run().id(RUN_ID);
publisher = mock(Publisher.class);
ObjectMapper objectMapper = ObjectMappers.get();
setResolver = mock(SetResolver.class);
victim = new ResearchMetadataApi(sampleApi, setApi, runApi, Optional.of(run), BIOPSY, Arguments.testDefaults(), new StagedOutputPublisher(setResolver, bucket, publisher, objectMapper, Optional.of(run), Context.RESEARCH, false, true), new Anonymizer(Arguments.testDefaults()));
}
Aggregations