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 void
addSimpleTerm()
void
addUnknownSimpleTerm()
void
addUnknownTerm()
void
badTerm()
void
removedGbifTerms()
void
testCompleteness()
void
testFindTerm()
void
testKnownTermUniqueness()
GBIF code assumes a term coming from any of the Term enumerations mostly have unique simple names.void
testMultithreadStart()
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
-
-