Project

General

Profile

« Previous | Next » 

Revision 7413db32

Added by Andreas Kohlbecker over 8 years ago

implementing MatchingNameString and MatchingNameType

View differences:

src/test/java/org/bgbm/biovel/drf/checklist/EEA_BDC_ClientTest.java
3 3
import static org.junit.Assert.assertEquals;
4 4
import static org.junit.Assert.assertTrue;
5 5

  
6
import org.bgbm.biovel.drf.tnr.msg.NameType;
6 7
import org.bgbm.biovel.drf.tnr.msg.Response;
7 8
import org.bgbm.biovel.drf.tnr.msg.TnrMsg;
8 9
import org.bgbm.biovel.drf.utils.TnrMsgException;
......
97 98
        String outputXML = TnrMsgUtils.convertTnrMsgToXML(tnrMsg);
98 99
        System.out.println(outputXML);
99 100
        assertTrue(tnrMsg.getQuery().get(0).getResponse().size() > 0);
100
        tnrMsg.getQuery().get(0).getResponse().get(0).getTaxon().getTaxonName().getCanonicalName().equals("Cichorium intybus");
101
        Response response = tnrMsg.getQuery().get(0).getResponse().get(0);
102
        assertEquals("Cichorium intybus", response.getTaxon().getTaxonName().getCanonicalName());
103
        assertEquals("Wegwarte", response.getMatchingNameString());
104
        assertEquals(NameType.VERNACULAR_NAME, response.getMatchingNameType());
101 105
    }
102 106

  
103 107
    @Test

Also available in: Unified diff