Project

General

Profile

« Previous | Next » 

Revision 12c99f84

Added by Andreas Müller over 7 years ago

cleanup

View differences:

app-import/src/test/java/eu/etaxonomy/cdm/io/redlist/bfnXml/BfnXmlImportConfiguratorTest.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
*/
9 9

  
10 10
package eu.etaxonomy.cdm.io.redlist.bfnXml;
11 11

  
12
//import static junit.framework.Assert.assertNotNull;
13
//import static junit.framework.Assert.assertTrue;
14 12
//
15 13
//import java.net.URISyntaxException;
16 14
//import java.net.URL;
......
40 38
//
41 39
//	@SpringBeanByType
42 40
//	INameService nameService;
43
//	
41
//
44 42
//	@SpringBeanByType
45 43
//	ITaxonService taxonService;
46 44
//
47 45
//	@SpringBeanByType
48 46
//	IClassificationService classificationService;
49
//	
47
//
50 48
//	private IImportConfigurator configurator;
51
//	
49
//
52 50
//	@Before(value = "")
53 51
//	public void setUp() throws URISyntaxException {
54
//		
52
//
55 53
//		String inputFile = "/eu/etaxonomy/cdm/io/bfnXml/bfnXmlTest-input.xml";
56 54
//		URL url = this.getClass().getResource(inputFile);
57 55
//		assertNotNull("URL for the test file '" + inputFile + "' does not exist", url);
58 56
//		configurator = BfnXmlImportConfigurator.NewInstance(url.toURI(), null);
59 57
//		assertNotNull("Configurator could not be created", configurator);
60 58
//	}
61
//	
59
//
62 60
//	@Test
63 61
//	public void testInit() {
64 62
//		assertNotNull("cdmTcsXmlImport should not be null", defaultImport);
65 63
//		assertNotNull("nameService should not be null", nameService);
66 64
//	}
67
//	
65
//
68 66
//	@Test
69 67
//	public void testDoInvoke() {
70 68
//		boolean result = defaultImport.invoke(configurator);
71 69
//		assertTrue("Return value for import.invoke should be true", result);
72
		
73
		
74
		
75
		
76
		
70

  
71

  
72

  
73

  
74

  
77 75
//		List<Classification> classificationList = classificationService.list(Classification.class, null, null, null, null);
78 76
//		if(classificationList != null && !classificationList.isEmpty()){
79 77
//			for(Classification classification:classificationList){
......
87 85
//		}
88 86
//		List<TaxonBase> taxonBaseList = taxonService.list(TaxonBase.class, null, null, null, null);
89 87
//		for(TaxonBase taxon:taxonBaseList){
90
//			
88
//
91 89
//			if(taxon instanceof Taxon){
92 90
//			logger.info("Taxon: "+taxon.getTitleCache());
93 91
//			}

Also available in: Unified diff