|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fzi.kadmos.api.impl.SimpleCorrespondenceTest
public class SimpleCorrespondenceTest
Test class for the default implementation of a Correspondence
.
Constructor Summary | |
---|---|
SimpleCorrespondenceTest()
|
Method Summary | |
---|---|
static void |
setUpBeforeClass()
|
static void |
tearDownAfterClass()
|
void |
testClone()
Test method for SimpleCorrespondence.clone() |
void |
testDataPropEntityType()
Test for correspondences of data properties. |
void |
testEqualsObject()
Test method for SimpleCorrespondence.equals(java.lang.Object) . |
void |
testGetConfidence()
Test method for SimpleCorrespondence.getConfidence() . |
void |
testGetEntity1()
Test method for SimpleCorrespondence.getEntity1() . |
void |
testGetEntity2()
Test method for SimpleCorrespondence.getEntity2() . |
void |
testHashCode()
Test method for SimpleCorrespondence.hashCode() . |
void |
testHashLocation()
Test for the behaviour of correspondences in hash data structures. |
void |
testIndividualsEntityType()
Test for correspondences of object properties. |
void |
testMixedEntityTypes1()
Test for correspondences entities of mixed types, here: object and data properties No mixed entity type correspondences are allowed, so an IncompatibleEntityTypesException is expected. |
void |
testMixedEntityTypes2()
Test for correspondences entities of mixed types, here: class and object properties No mixed entity type correspondences are allowed, so an IncompatibleEntityTypesException is expected. |
void |
testMixedEntityTypes3()
Test for correspondences entities of mixed types, here: class and individual No mixed entity type correspondences are allowed, so an IncompatibleEntityTypesException is expected. |
void |
testMixedEntityTypes4()
Test for correspondences entities of mixed types, here: data property and individual No mixed entity type correspondences are allowed, so an IncompatibleEntityTypesException is expected. |
void |
testObjPropEntityType()
Test for correspondences of object properties. |
void |
testRoundTripSerialisation()
Test method for SimpleCorrespondence.writeObject(java.io.ObjectOutputStream)
and SimpleCorrespondence.readObject(java.io.ObjectInputStream) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleCorrespondenceTest()
Method Detail |
---|
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public final void testHashCode() throws Exception
SimpleCorrespondence.hashCode()
.
Exception
public final void testGetConfidence() throws Exception
SimpleCorrespondence.getConfidence()
.
Exception
public final void testGetEntity1() throws Exception
SimpleCorrespondence.getEntity1()
.
Exception
public final void testGetEntity2() throws Exception
SimpleCorrespondence.getEntity2()
.
Exception
public final void testObjPropEntityType() throws Exception
Exception
public final void testDataPropEntityType() throws Exception
Exception
public final void testIndividualsEntityType() throws Exception
Exception
public final void testMixedEntityTypes1() throws Exception
IncompatibleEntityTypesException
is expected.
Exception
public final void testMixedEntityTypes2() throws Exception
IncompatibleEntityTypesException
is expected.
Exception
public final void testMixedEntityTypes3() throws Exception
IncompatibleEntityTypesException
is expected.
Exception
public final void testMixedEntityTypes4() throws Exception
IncompatibleEntityTypesException
is expected.
Exception
public final void testEqualsObject() throws Exception
SimpleCorrespondence.equals(java.lang.Object)
.
Exception
public final void testClone() throws Exception
SimpleCorrespondence.clone()
Exception
public final void testHashLocation() throws Exception
HashSet
works as expected: both are contained in the set.
Removing one preserves the other one in the set.
Changing the confidence for the one remaining in the set works as expected:
The reference obtained from the set refers to the correct one with the modified confidence.
If a correspondence between the same entities but with different confidence is added
to the set, it is added correctly.
If a correspondence that is equal to one already contained in the set, but is a different instance,
it cannot be added to the set correctly.
Beware: Checking whether a hash data set contains a correspondence that is equal to a correspondence
that is actually contained, but is a different object instance, returns true
.
Exception
public final void testRoundTripSerialisation() throws Exception
SimpleCorrespondence.writeObject(java.io.ObjectOutputStream)
and SimpleCorrespondence.readObject(java.io.ObjectInputStream)
.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |