Skip to content

Commit

Permalink
fix test error/logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpoelen committed Feb 17, 2017
1 parent 114932f commit 5c13729
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -290,7 +290,7 @@ private Specimen createSpecimen(LabeledCSVParser parser, Study study, Map<String
try {
Taxon taxon = taxonMap.get(bioTaxonId);
if (taxon == null) {
getLogger().warn(study, "empty/no taxon name for for bioinfo taxon id [" + bioTaxonId + "] on line [" + parser.lastLineNumber() + 1 + "]");
getLogger().warn(study, "empty/no taxon name for bioinfo taxon id [" + bioTaxonId + "] on line [" + parser.lastLineNumber() + 1 + "]");
} else {
specimen = nodeFactory.createSpecimen(study, new TaxonImpl(taxon.getName(), TaxonomyProvider.BIO_INFO + "taxon:" + bioTaxonId));
setSpecimenExternalId(parser, specimen);
Expand Down
Expand Up @@ -108,7 +108,7 @@ public boolean shouldImportRecord(Long recordNumber) {


assertThat("found unexpected log messages: [" + StringUtils.join(msgs, "\n") + "]", msgs.size(), is(1));
assertThat(msgs.get(0), is("no taxon for id [149359] on line [4171]"));
assertThat(msgs.get(0), is("empty/no taxon name for bioinfo taxon id [149359] on line [4171]"));
}


Expand Down

0 comments on commit 5c13729

Please sign in to comment.