3 import org
.apache
.log4j
.Level
;
4 import org
.apache
.log4j
.Logger
;
6 import eu
.etaxonomy
.cdm
.api
.application
.CdmApplicationController
;
7 import eu
.etaxonomy
.cdm
.api
.service
.INameService
;
8 import eu
.etaxonomy
.cdm
.api
.service
.NameServiceImpl
;
9 import eu
.etaxonomy
.cdm
.model
.name
.TaxonName
;
12 public class TestJarMain
{
13 static Logger logger
= Logger
.getLogger(TestJarMain
.class);
19 public static void main(String
[] args
) {
20 System
.out
.println("Start Test");
22 CdmApplicationController app
= new CdmApplicationController();
23 INameService ns
= app
.getNameService();
24 TaxonName tn
= ns
.getTaxonNameById(1);
25 logger
.setLevel(Level
.INFO
);
27 logger
.info("Uuid for TaxonName(1): " + tn
.getUuid());
29 logger
.warn("No name with id = 1");
31 System
.out
.println("End Success");