PGXCallsFile { @NotNull public static List<PGXCalls> read(@NotNull final String filename) throws IOException { return fromLines(Files.readAllLines(new File(filename).toPath())); } private  PGXCallsFile(); @NotNull static List<PGXCalls> read(@NotNull final String filename);  }
@Test public void loadPgxCallsFile() throws IOException { List<PGXCalls> pgxCalls = PGXCallsFile.read(FILE); assertEquals(18, pgxCalls.size()); PGXCalls pgxCalls1 = pgxCalls.get(0); assertEquals(GENE_1, pgxCalls1.gene()); assertEquals(POSITION_GRCH37_1, pgxCalls1.positionGRCh37()); assertEquals(REF_GRCH37_1, pgxCalls1.refGRCh37()); assertEquals(ALT_GRCH37_1, pgxCalls1.altGRCh37()); assertEquals(POSITION_GRCH38_1, pgxCalls1.positionGRCh38()); assertEquals(REF_GRCH38_1, pgxCalls1.refGRCh38()); assertEquals(ALT_GRCH38_1, pgxCalls1.altGRCh38()); assertEquals(RSID_1, pgxCalls1.rsid()); assertEquals(VARIANT_ANNOTATION_1, pgxCalls1.variantAnnotation()); assertEquals(FILTER_1, pgxCalls1.filter()); PGXCalls pgxCalls2 = pgxCalls.get(15); assertEquals(GENE_2, pgxCalls2.gene()); assertEquals(POSITION_GRCH37_2, pgxCalls2.positionGRCh37()); assertEquals(REF_GRCH37_2, pgxCalls2.refGRCh37()); assertEquals(ALT_GRCH37_2, pgxCalls2.altGRCh37()); assertEquals(POSITION_GRCH38_2, pgxCalls2.positionGRCh38()); assertEquals(REF_GRCH38_2, pgxCalls2.refGRCh38()); assertEquals(ALT_GRCH38_2, pgxCalls2.altGRCh38()); assertEquals(RSID_2, pgxCalls2.rsid()); assertEquals(VARIANT_ANNOTATION_2, pgxCalls2.variantAnnotation()); assertEquals(FILTER_2, pgxCalls2.filter()); }