PGXGenotypeFile { @NotNull public static List<PGXGenotype> read(@NotNull final String filename) throws IOException { return fromLines(Files.readAllLines(new File(filename).toPath())); } private  PGXGenotypeFile(); @NotNull static List<PGXGenotype> read(@NotNull final String filename);  }
@Test public void loadPgxGenotypeFile() throws IOException { List<PGXGenotype> pgxGenotypes = PGXGenotypeFile.read(FILE); assertEquals(1, pgxGenotypes.size()); PGXGenotype genotype1 = pgxGenotypes.get(0); assertEquals(GENE, genotype1.gene()); assertEquals(HAPLOTYPE, genotype1.haplotype()); assertEquals(FUNCTION, genotype1.function()); assertEquals(LINKED_DRUGS, genotype1.linkedDrugs()); assertEquals(URL_PRESCRIPTION_INFO, genotype1.urlPrescriptionInfo()); assertEquals(PANEL_VERSION, genotype1.panelVersion()); assertEquals(REPO_VERSION, genotype1.repoVersion()); }