Project

General

Profile

« Previous | Next » 

Revision c31bb763

Added by Andreas Müller about 16 years ago

View differences:

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

  
1 10
package eu.etaxonomy.cdm.aspectj;
2 11

  
3
	import static org.junit.Assert.*;
12
import static org.junit.Assert.*;
4 13

  
5 14
import java.beans.PropertyChangeEvent;
6
	import java.beans.PropertyChangeListener;
15
import java.beans.PropertyChangeListener;
7 16

  
8 17
import org.apache.log4j.Level;
9 18
import org.apache.log4j.Logger;
10 19
import org.junit.Before;
11
import org.junit.BeforeClass;
12
import org.junit.Ignore;
13 20
import org.junit.Test;
14 21

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

  
3
import java.util.Random;
4

  
5 12
import org.apache.log4j.Logger;
6 13
import org.hibernate.Session;
7 14
import org.hibernate.SessionFactory;
8 15
import org.hibernate.Transaction;
9 16
import org.springframework.context.support.ClassPathXmlApplicationContext;
10
import org.springframework.stereotype.Component;
11 17

  
12
import eu.etaxonomy.cdm.model.common.VersionableEntity;
13 18
import eu.etaxonomy.cdm.model.name.BotanicalName;
14 19
import eu.etaxonomy.cdm.model.name.Rank;
15 20
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/common/AnnotationTest.java
8 8
*/
9 9

  
10 10
package eu.etaxonomy.cdm.model.common;
11

  
11 12
import static org.junit.Assert.*;
12 13

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

  
6 12
import static org.junit.Assert.*;
......
17 23
import org.junit.AfterClass;
18 24
import org.junit.Before;
19 25
import org.junit.BeforeClass;
20
import org.junit.Ignore;
21 26
import org.junit.Test;
22 27

  
23 28
import eu.etaxonomy.cdm.model.agent.Person;
24
import eu.etaxonomy.cdm.model.name.BotanicalName;
25 29
import eu.etaxonomy.cdm.test.unit.EntityTestBase;
26 30

  
27 31

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

  
3 12
import static org.junit.Assert.*;
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/common/OrderedTermBaseTest.java
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
 
1 10
package eu.etaxonomy.cdm.model.common;
2 11

  
3 12
import static org.junit.Assert.*;
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/common/OrderedTermVocabularyTest.java
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
 
1 10
package eu.etaxonomy.cdm.model.common;
2 11

  
3 12
import static org.junit.Assert.*;
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/common/TermVocabularyTest.java
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
 
1 10
package eu.etaxonomy.cdm.model.common;
2 11

  
3 12
import static org.junit.Assert.*;
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/common/init/DefaultVocabularyStoreTest.java
1 1
/**
2
 * 
3
 */
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
 
4 10
package eu.etaxonomy.cdm.model.common.init;
5 11

  
6 12
import static org.junit.Assert.*;
......
14 20
import org.junit.BeforeClass;
15 21
import org.junit.Test;
16 22

  
17
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
18
import eu.etaxonomy.cdm.model.common.Language;
19 23
import eu.etaxonomy.cdm.model.common.TermVocabulary;
20 24
import eu.etaxonomy.cdm.model.common.WrongTermTypeException;
21 25
import eu.etaxonomy.cdm.model.name.Rank;
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/common/init/TermLoaderTest.java
1 1
/**
2
 * 
3
 */
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
 
4 10
package eu.etaxonomy.cdm.model.common.init;
5 11

  
6 12
import static org.junit.Assert.*;
7 13

  
8 14
import java.io.FileNotFoundException;
9
import java.lang.reflect.Field;
10
import java.util.HashMap;
11
import java.util.Map;
12 15
import java.util.UUID;
13 16

  
14 17
import org.apache.log4j.Logger;
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/description/TextDataTest.java
11 11

  
12 12
import static org.junit.Assert.*;
13 13

  
14
import java.util.HashMap;
15

  
16 14
import org.apache.log4j.Logger;
17 15
import org.junit.After;
18 16
import org.junit.AfterClass;
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/name/BotanicalNameTest.java
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
 
1 10
package eu.etaxonomy.cdm.model.name;
2 11

  
3 12
import static org.junit.Assert.*;
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/name/NonViralNameTest.java
1 1
/**
2
 * 
3
 */
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
 
4 10
package eu.etaxonomy.cdm.model.name;
5 11

  
6 12
import static org.junit.Assert.*;
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/name/RankTest.java
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
 
1 10
package eu.etaxonomy.cdm.model.name;
2 11

  
3 12
import static org.junit.Assert.*;
......
7 16
import org.apache.log4j.Logger;
8 17
import org.junit.Test;
9 18

  
10
import eu.etaxonomy.cdm.model.common.OrderedTermBase;
11 19
import eu.etaxonomy.cdm.strategy.exceptions.UnknownCdmTypeException;
12 20
import eu.etaxonomy.cdm.test.unit.EntityTestBase;
13 21

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

  
3 12
import static org.junit.Assert.*;
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/taxon/TaxonBaseTest.java
1 1
/**
2
 * 
3
 */
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
 
4 10
package eu.etaxonomy.cdm.model.taxon;
5 11

  
6 12
import static org.junit.Assert.*;
......
12 18
import org.junit.BeforeClass;
13 19
import org.junit.Test;
14 20

  
15
import eu.etaxonomy.cdm.model.agent.Person;
16 21
import eu.etaxonomy.cdm.model.name.BotanicalName;
17 22
import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
18 23
import eu.etaxonomy.cdm.model.name.Rank;
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/taxon/TaxonTest.java
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
 
1 10
package eu.etaxonomy.cdm.model.taxon;
2 11

  
3 12
import static org.junit.Assert.*;
......
5 14
import java.util.Set;
6 15

  
7 16
import org.junit.Before;
8
import org.junit.BeforeClass;
9 17
import org.junit.Test;
10 18

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

  
6 12
import static org.junit.Assert.*;
......
9 15
import java.util.regex.Pattern;
10 16

  
11 17
import org.apache.log4j.Logger;
12
import org.junit.After;
13
import org.junit.AfterClass;
14
import org.junit.Before;
15
import org.junit.BeforeClass;
16 18
import org.junit.Test;
17 19

  
18 20
import eu.etaxonomy.cdm.model.name.BotanicalName;
19
import eu.etaxonomy.cdm.model.name.Rank;
20
import eu.etaxonomy.cdm.strategy.exceptions.StringNotParsableException;
21

  
21 22
import eu.etaxonomy.cdm.strategy.parser.ITaxonNameParser;
22 23
import eu.etaxonomy.cdm.strategy.parser.TaxonNameParserBotanicalNameImpl;
23
import eu.etaxonomy.cdm.test.function.TestModel;
24 24

  
25 25
/**
26 26
 * @author a.mueller
cdmlib-model/src/test/java/eu/etaxonomy/cdm/test/suite/CdmTestSuite.java
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
 
1 10
package eu.etaxonomy.cdm.test.suite;
2 11

  
3 12
import org.junit.runner.RunWith;
......
10 19
import eu.etaxonomy.cdm.model.common.init.TermLoaderTest;
11 20
import eu.etaxonomy.cdm.model.name.*;
12 21
import eu.etaxonomy.cdm.model.taxon.*;
13
import eu.etaxonomy.cdm.strategy.BotanicNameCacheStrategyTest;
14
import eu.etaxonomy.cdm.strategy.TaxonNameParserBotanicalNameImplTest;
22
import eu.etaxonomy.cdm.strategy.cache.BotanicNameCacheStrategyTest;
23
import eu.etaxonomy.cdm.strategy.parser.TaxonNameParserBotanicalNameImplTest;
15 24

  
16 25

  
17 26
@RunWith(Suite.class)
cdmlib-model/src/test/java/eu/etaxonomy/cdm/test/unit/CdmUnitTestBase.java
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
 
1 10
package eu.etaxonomy.cdm.test.unit;
2 11

  
3 12

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

  
6 12
import static org.junit.Assert.fail;

Also available in: Unified diff