Project

General

Profile

« Previous | Next » 

Revision da39aca0

Added by Andreas Müller about 7 years ago

ref #6365 merge static methods from BotanicaName to TaxonNameBase

View differences:

cdmlib-model/src/test/java/eu/etaxonomy/cdm/test/function/TestFullReferenceParser.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
13 13

  
14 14
import eu.etaxonomy.cdm.model.name.BotanicalName;
15 15
import eu.etaxonomy.cdm.model.name.Rank;
16
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
16 17
import eu.etaxonomy.cdm.strategy.parser.INonViralNameParser;
17 18
import eu.etaxonomy.cdm.strategy.parser.NonViralNameParserImpl;
18 19

  
19 20
/**
20 21
 * @author a.mueller
21 22
 * @created 21.11.2008
22
 * @version 1.0
23 23
 */
24 24
public class TestFullReferenceParser {
25 25
	private static final Logger logger = Logger.getLogger(TestFullReferenceParser.class);
26 26

  
27
	
27

  
28 28
	private boolean test(){
29 29
		INonViralNameParser parser = NonViralNameParserImpl.NewInstance();
30
		BotanicalName nameToBeFilled = BotanicalName.NewInstance(null);
30
		BotanicalName nameToBeFilled = TaxonNameBase.NewBotanicalInstance(null);
31 31
		String fullReference = "Abies alba Mill.,  Sp.   Pl. 4: 455. 1987.";
32 32
		boolean makeEmpty = false;
33 33
		Rank rank = null;
34 34
		parser.parseReferencedName(nameToBeFilled, fullReference, rank, makeEmpty);
35 35
		return true;
36 36
	}
37
	
37

  
38 38
	/**
39 39
	 * @param args
40 40
	 */

Also available in: Unified diff