de.fzi.kadmos.api.impl
Class SimpleAlignmentTest
java.lang.Object
de.fzi.kadmos.api.impl.AlignmentTestBase
de.fzi.kadmos.api.impl.SimpleAlignmentTest
public class SimpleAlignmentTest
- extends AlignmentTestBase
Test class for the SimpleAlignment
implementation of an Alignment
.
- Author:
- Juergen Bock
Fields inherited from class de.fzi.kadmos.api.impl.AlignmentTestBase |
alignment, cls1, cls1a, cls1NotInSig, cls2, cls2a, cls2NotInSig, listener1, listener2, ontology1, ontology2 |
Methods inherited from class de.fzi.kadmos.api.impl.AlignmentTestBase |
setUp, setUpBeforeClass, tearDown, testAddCorrespondence, testAddCorrespondenceEntity1NotInOntology, testAddCorrespondenceEntity2NotInOntology, testAddCorrespondenceTwice, testAddDifferentCorrespondenceTypes, testAddTwoCorrespondencesForSameEntity1, testAddTwoCorrespondencesForSameEntity2, testAttachListener, testAttachListenerNull, testClone, testDetachListener, testDetachListenerNull, testGetCorrespondences, testGetCorrespondencesModifyAdd, testGetCorrespondencesModifyRemove, testGetEntity1CorrIRI, testGetEntity1CorrOWLEntity, testGetEntity2CorrIRI, testGetEntity2CorrOWLEntity, testIteratorCompleteness, testIteratorRemoval, testIteratorRemovalTwice, testIteratorRemovelWithoutNext, testRemoveCorrespondence, testSimpleAlignmentOWLOntologyOWLOntology |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleAlignmentTest
public SimpleAlignmentTest()
initAlignment
protected void initAlignment()
throws Exception
- Initialises the test instance with the
SimpleAlignment
implementation.
- Specified by:
initAlignment
in class AlignmentTestBase
- Throws:
Exception
testEquals
public final void testEquals()
throws Exception
- Test method for
SimpleAlignment.equals(java.lang.Object)
.
Creating an alignment and adding two correspondences to it,
the alignment is not equal to null
,
is not equal to another arbitrary object (in this case this
test class),
is equal to itself.
Creating another alignment, it is not equal
unless it contains exactly the same two correspondences.
Creating a third alignment between a different pair of ontologies,
it is not equal either.
- Throws:
MultiplicityException
Exception
testHashCode
public final void testHashCode()
throws Exception
- Test method for
SimpleAlignment.hashCode()
.
Alignments that are equal have the same hash code.
- Throws:
MultiplicityException
Exception
Copyright © 2012. All Rights Reserved.