|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fzi.kadmos.evaluator.impl.SymProxEvaluatorTest
public class SymProxEvaluatorTest
Test class for the symmetric proximity precision / recall evaluator SymProxEvaluatorImpl
.
Constructor Summary | |
---|---|
SymProxEvaluatorTest()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SymProxEvaluatorTest()
Method Detail |
---|
public static void setUpBeforeClass() throws Exception
Exception
public final void testInitNullReference() throws Exception
null
reference is given as parameter
for the SymProxEvaluatorImpl.getInstance(Alignment)
method, an IllegalArgumentException
is expected.
Exception
public final void testGetPrecisionNullReference() throws Exception
null
reference is given as parameter
for the SymProxEvaluatorImpl.getPrecision(Alignment)
method, an IllegalArgumentException
is expected.
Exception
public final void testGetRecallNullReference() throws Exception
null
reference is given as parameter
for the SymProxEvaluatorImpl.getRecall(Alignment)
method, an IllegalArgumentException
is expected.
Exception
public final void testGetFMeasureNullReference() throws Exception
null
reference is given as parameter
for the SymProxEvaluatorImpl.getFMeasure(Alignment)
method, an IllegalArgumentException
is expected.
Exception
public final void testInstanceCaching() throws Exception
Alignment
,
the same SymProxEvaluatorImpl
instance is provided. If
different reference Alignment
s are used, different instances
are provided.
Exception
public final void testGetPrecisionEmptyAlignment() throws Exception
SymProxEvaluator.getPrecision(Alignment)
.
Empty alignment, non-empty reference alignment.
Expected: NaN
Exception
public final void testGetPrecisionEmptyReferenceAlignment() throws Exception
PrecRecEvaluator.getPrecision(Alignment)
.
Non-empty alignment, empty reference alignment.
Expected: 0.0
Exception
public final void testGetPrecisionEqualAlignmentAndReference() throws Exception
SymProxEvaluator.getPrecision(Alignment)
.
Equal alignment and reference alignment.
Expected: 1.0
Exception
public final void testGetPrecisionAllCorrectButIncomplete() throws Exception
SymProxEvaluator.getPrecision(Alignment)
.
All correct, but reference contains more.
Expected: 1.0
Exception
public final void testGetPrecisionOneOfTwoCorrect() throws Exception
SymProxEvaluator.getPrecision(Alignment)
.
1 of 2 correct.
Expected: 0.5
Exception
public final void testGetPrecisionTwoOfFourCorrect() throws Exception
SymProxEvaluator.getPrecision(Alignment)
.
2 of 4 correct.
Expected: 0.5
Exception
public final void testGetPrecisionIncompatibleOntology1() throws Exception
SymProxEvaluator.getPrecision(Alignment)
.
Different ontology 1 in alignment reference.
Expected: IncompatibleAlignmentsException
Exception
public final void testGetPrecisionIncompatibleOntology2() throws Exception
SymProxEvaluator.getPrecision(Alignment)
.
Different ontology 2 in alignment and reference.
Expected: IncompatibleAlignmentsException
Exception
public final void testGetRecallEmptyAlignment() throws Exception
SymProxEvaluator.getRecall(Alignment)
.
Empty alignment, non-empty reference alignment.
Expected: 0.0
Exception
public final void testGetRecallEmptyReferenceAlignment() throws Exception
SymProxEvaluator.getRecall(Alignment)
.
Non-empty alignment, empty reference alignment.
Expected: NaN
Exception
public final void testGetRecallEqualAlignmentAndReference() throws Exception
SymProxEvaluator.getRecall(Alignment)
.
Equal alignment and reference alignment.
Expected: 1.0
Exception
public final void testGetRecallContainsAllButMore() throws Exception
SymProxEvaluator.getRecall(Alignment)
.
Contains all from reference, but also some more.
Expected: 1.0
Exception
public final void testGetRecallOneOfTwoContained() throws Exception
SymProxEvaluator.getRecall(Alignment)
.
1 of 2 contained.
Expected: 0.5
Exception
public final void testGetRecallFourOfEightContained() throws Exception
SymProxEvaluator.getRecall(Alignment)
.
4 of 8 contained.
Expected: 0.5
Exception
public final void testGetRecallIncompatibleOntology1() throws Exception
SymProxEvaluator.getRecall(Alignment)
.
Different ontology 1 in alignment reference.
Expected: IncompatibleAlignmentsException
Exception
public final void testGetRecallIncompatibleOntology2() throws Exception
SymProxEvaluator.getRecall(Alignment)
.
Different ontology 2 in alignment and reference.
Expected: IncompatibleAlignmentsException
Exception
public final void testGetFMeasureEmptyAlignment() throws Exception
SymProxEvaluator.getFMeasure(Alignment)
.
Empty alignment, non-empty reference alignment.
Expected: NaN
Exception
public final void testGetFMeasureEmptyReferenceAlignment() throws Exception
SymProxEvaluator.getFMeasure(Alignment)
.
Non-empty alignment, empty reference alignment.
Expected: NaN
Exception
public final void testGetFMeasureEqualAlignmentAndReference() throws Exception
SymProxEvaluator.getFMeasure(Alignment)
.
Equal alignment and reference alignment.
Expected: 1.0
Exception
public final void testGetFMeasureContainsHalf() throws Exception
SymProxEvaluator.getRecall(Alignment)
.
Contains half of the correspondences from reference.
Expected: precision=0.5, recall=1.0, f-measure=2/3
Exception
public final void testGetFMeasureAllWrong() throws Exception
SymProxEvaluator.getFMeasure(Alignment)
.
All wrong.
Expected: 0.0
Exception
public final void testGetFMeasureIncompatibleOntology1() throws Exception
SymProxEvaluator.getFMeasure(Alignment)
.
Different ontology 1 in alignment reference.
Expected: IncompatibleAlignmentsException
Exception
public final void testGetFMeasureIncompatibleOntology2() throws Exception
SymProxEvaluator.getFMeasure(Alignment)
.
Different ontology 2 in alignment and reference.
Expected: IncompatibleAlignmentsException
Exception
public final void testOWLClassSameHierarchy() throws Exception
SymProxEvaluator.getFMeasure(Alignment)
.
Different ontology 2 in alignment and reference.
Expected: IncompatibleAlignmentsException
Exception
public final void testOWLClassDifferentHierarchy() throws Exception
SymProxEvaluator.getFMeasure(Alignment)
.
Different ontology 2 in alignment and reference.
Expected: IncompatibleAlignmentsException
Exception
public final void testOWLObjectPropertySameHierarchy() throws Exception
SymProxEvaluator.getFMeasure(Alignment)
.
Different ontology 2 in alignment and reference.
Expected: IncompatibleAlignmentsException
Exception
public final void testOWLObjectPropertyDifferentHierarchy() throws Exception
SymProxEvaluator.getFMeasure(Alignment)
.
Different ontology 2 in alignment and reference.
Expected: IncompatibleAlignmentsException
Exception
public final void testOWLDataPropertySameHierarchy() throws Exception
SymProxEvaluator.getFMeasure(Alignment)
.
Different ontology 2 in alignment and reference.
Expected: IncompatibleAlignmentsException
Exception
public final void testOWLDataPropertyDifferentHierarchy() throws Exception
SymProxEvaluator.getFMeasure(Alignment)
.
Different ontology 2 in alignment and reference.
Expected: IncompatibleAlignmentsException
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |