Package org.gbif.dwc.terms
Class TermFactoryTest
- java.lang.Object
-
- org.gbif.dwc.terms.TermFactoryTest
-
public class TermFactoryTest extends Object
-
-
Constructor Summary
Constructors Constructor Description TermFactoryTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSimpleTerm()voidaddUnknownSimpleTerm()voidaddUnknownTerm()voidbadTerm()voidremovedGbifTerms()voidtestCompleteness()voidtestFindTerm()voidtestKnownTermUniqueness()GBIF code assumes a term coming from any of the Term enumerations mostly have unique simple names.voidtestMultithreadStart()Not a real test, just a way of running many concurrent TermFactory.instance() calls to verify thread safety.
-
-
-
Constructor Detail
-
TermFactoryTest
public TermFactoryTest()
-
-
Method Detail
-
testKnownTermUniqueness
@Test public void testKnownTermUniqueness()
GBIF code assumes a term coming from any of the Term enumerations mostly have unique simple names. This tests verifies that! AcefTerm is known to overlap, so its excluded, see skipSimple in AcefTermTest.
-
testCompleteness
@Test public void testCompleteness() throws Exception
- Throws:
Exception
-
testFindTerm
@Test public void testFindTerm()
-
addUnknownTerm
@Test public void addUnknownTerm()
-
badTerm
@Test public void badTerm()
-
removedGbifTerms
@Test public void removedGbifTerms()
-
addSimpleTerm
@Test public void addSimpleTerm()
-
addUnknownSimpleTerm
@Test public void addUnknownSimpleTerm()
-
testMultithreadStart
@Test public void testMultithreadStart() throws InterruptedException
Not a real test, just a way of running many concurrent TermFactory.instance() calls to verify thread safety.- Throws:
InterruptedException
-
-