GenomeDataResolver { public Path getGenomeAssemblyDataPath() { return assemblyDataDirectory; } GenomeDataResolver(GenomeProperties genomeProperties, Path exomiserDataDirectory); String getVersionAssemblyPrefix(); Path getGenomeAssemblyDataPath(); Path resolveAbsoluteResourcePath(String fileResource); Path resolveAbsoluteResourcePath(Path fileResourcePath);  }
@Test public void testNoAssemblyDataDirDefined() { GenomeProperties genomeProperties = new Hg19GenomeProperties(); genomeProperties.setDataVersion("1710"); GenomeDataResolver instance = new GenomeDataResolver(genomeProperties, exomiserDataDirectory); assertThat(instance.getGenomeAssemblyDataPath(), equalTo(Paths.get("src/test/resources/data/1710_hg19").toAbsolutePath())); }
@Test public void testAssemblyDataDirOverridesDefault() { GenomeProperties genomeProperties = new Hg19GenomeProperties(); genomeProperties.setDataVersion("1710"); genomeProperties.setDataDirectory("src/test/resources/user-defined"); GenomeDataResolver instance = new GenomeDataResolver(genomeProperties, exomiserDataDirectory); assertThat(instance.getGenomeAssemblyDataPath(), equalTo(Paths.get("src/test/resources/user-defined").toAbsolutePath())); }