diff --git a/src/test/java/org/metagene/genestrip/goals/DB2FastqGoalTest.java b/src/test/java/org/metagene/genestrip/goals/DB2FastqGoalTest.java index ca84252a..7917dc63 100644 --- a/src/test/java/org/metagene/genestrip/goals/DB2FastqGoalTest.java +++ b/src/test/java/org/metagene/genestrip/goals/DB2FastqGoalTest.java @@ -33,6 +33,7 @@ import org.junit.Test; import org.metagene.genestrip.APITest; import org.metagene.genestrip.GSCommon; +import org.metagene.genestrip.GSConfigKey; import org.metagene.genestrip.GSGoalKey; import org.metagene.genestrip.GSMaker; import org.metagene.genestrip.GSProject; @@ -54,6 +55,8 @@ public void testDB2FastqGoal() throws IOException { // release). GSProject project = new GSProject(config, "human_virus", null, null, null, null, null, false, "64320,12637+", null, null, null, false); + project.initConfigParam(GSConfigKey.WRITED_KRAKEN_STYLE_OUT, true); + GSMaker maker = new GSMaker(project); String[] taxids = new String[] { "64320", "12637", "11053", "11060", "11069", "11070" }; @@ -71,7 +74,7 @@ public void testDB2FastqGoal() throws IOException { for (int i = 0; i < taxids.length; i++) { File file = goal.getOutputFile(taxids[i]); - MatchingResult result = maker.match(false, "", file.toString()); + MatchingResult result = maker.match(false, taxids[i], file.toString()); Map map = result.getTaxid2Stats(); assertEquals(kmers[i], map.get(taxids[i]).getKMers()); assertEquals(kmers[i], map.get(taxids[i]).getUniqueKMers());