ResultsWriterFactory { public ResultsWriter getResultsWriter(OutputFormat outputFormat) { switch (outputFormat){ case TSV_GENE: return new TsvGeneResultsWriter(); case TSV_VARIANT: return new TsvVariantResultsWriter(); case VCF: return new VcfResultsWriter(); case PHENOGRID: return new PhenogridWriter(); case JSON: return new JsonResultsWriter(); case HTML: default: return new HtmlResultsWriter(); } }  ResultsWriter getResultsWriter(OutputFormat outputFormat);  }
@Test public void testGetHtmlResultsWriter() { OutputFormat outputFormat = OutputFormat.HTML; ResultsWriter result = instance.getResultsWriter(outputFormat); assertThat(result, instanceOf(HtmlResultsWriter.class)); }
@Test public void testGetTsvGeneResults() { OutputFormat outputFormat = OutputFormat.TSV_GENE; ResultsWriter result = instance.getResultsWriter(outputFormat); assertThat(result, instanceOf(TsvGeneResultsWriter.class)); }
@Test public void testGetTsvVariantResultsWriter() { OutputFormat outputFormat = OutputFormat.TSV_VARIANT; ResultsWriter result = instance.getResultsWriter(outputFormat); assertThat(result, instanceOf(TsvVariantResultsWriter.class)); }
@Test public void testGetVcfResultsWriter() { OutputFormat outputFormat = OutputFormat.VCF; ResultsWriter result = instance.getResultsWriter(outputFormat); assertThat(result, instanceOf(VcfResultsWriter.class)); }
@Test public void testGetPhenoGridResultsWriter() { OutputFormat outputFormat = OutputFormat.PHENOGRID; ResultsWriter result = instance.getResultsWriter(outputFormat); assertThat(result, instanceOf(PhenogridWriter.class)); }
@Test public void testGetJsonResultsWriter() { OutputFormat outputFormat = OutputFormat.JSON; ResultsWriter result = instance.getResultsWriter(outputFormat); assertThat(result, instanceOf(JsonResultsWriter.class)); }