From cf1fbdf371e5c7e471e0040cb42a7a0c188f40a8 Mon Sep 17 00:00:00 2001 From: cmzmasek Date: Thu, 2 Mar 2017 10:08:07 -0800 Subject: [PATCH] added some tests for viral codes --- forester/java/src/org/forester/test/Test.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/forester/java/src/org/forester/test/Test.java b/forester/java/src/org/forester/test/Test.java index d6df5a9..cc50fa7 100644 --- a/forester/java/src/org/forester/test/Test.java +++ b/forester/java/src/org/forester/test/Test.java @@ -13251,6 +13251,18 @@ public final class Test { System.out.println( n10.toString() ); return false; } + final PhylogenyNode n10v = PhylogenyNode + .createInstanceFromNhxString( "BLAGG_BPM1-blag", NHXParser.TAXONOMY_EXTRACTION.PFAM_STYLE_RELAXED ); + if ( !n10v.getNodeData().getTaxonomy().getTaxonomyCode().equals( "BPM1" ) ) { + System.out.println( n10v.toString() ); + return false; + } + final PhylogenyNode n10v2 = PhylogenyNode + .createInstanceFromNhxString( "BLAGG_ABV-blag", NHXParser.TAXONOMY_EXTRACTION.PFAM_STYLE_RELAXED ); + if ( !n10v2.getNodeData().getTaxonomy().getTaxonomyCode().equals( "ABV" ) ) { + System.out.println( n10v2.toString() ); + return false; + } final PhylogenyNode n11 = PhylogenyNode .createInstanceFromNhxString( "BLAG@_Mus_musculus", NHXParser.TAXONOMY_EXTRACTION.AGGRESSIVE ); if ( !n11.getNodeData().getTaxonomy().getScientificName().equals( "Mus musculus" ) ) { -- 1.7.10.2