de.fzi.kadmos.api.impl
Class SimpleCorrespondenceFactoryTest

java.lang.Object
  extended by de.fzi.kadmos.api.impl.SimpleCorrespondenceFactoryTest

public class SimpleCorrespondenceFactoryTest
extends Object

Test class for the SimpleCorrespondenceFactory, which creates SimpleCorrespondence objects.

Since:
1.0
Version:
1.3.0
Author:
Juergen Bock

Constructor Summary
SimpleCorrespondenceFactoryTest()
           
 
Method Summary
static void setUpBeforeClass()
          Creates two sample OWLEntity instances.
 void testCreateCorrespondenceTT()
          Test method for SimpleCorrespondenceFactory.createCorrespondence(OWLEntity, OWLEntity).
 void testCreateCorrespondenceTTDouble()
          Test method for SimpleCorrespondenceFactory.createCorrespondence(OWLEntity, OWLEntity, double).
 void testGetInstance()
          Test method for SimpleCorrespondenceFactory.getInstance().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCorrespondenceFactoryTest

public SimpleCorrespondenceFactoryTest()
Method Detail

setUpBeforeClass

public static void setUpBeforeClass()
                             throws Exception
Creates two sample OWLEntity instances.

Throws:
Exception - if something goes wrong.

testGetInstance

public final void testGetInstance()
Test method for SimpleCorrespondenceFactory.getInstance(). An instance returned by the getInstance() method is not null. Calling the getInstance() method twice returns the same reference.


testCreateCorrespondenceTT

public final void testCreateCorrespondenceTT()
                                      throws Exception
Test method for SimpleCorrespondenceFactory.createCorrespondence(OWLEntity, OWLEntity). A correspondence created via this method is not null, is of type SimpleCorrespondence, and refers to the same OWL entites used for creation.

Throws:
Exception

testCreateCorrespondenceTTDouble

public final void testCreateCorrespondenceTTDouble()
                                            throws Exception
Test method for SimpleCorrespondenceFactory.createCorrespondence(OWLEntity, OWLEntity, double). A correspondence created via this method is not null, is of type SimpleCorrespondence, refers to the same OWL entites used for creation, and has the same confidence value used for creation.

Throws:
Exception


Copyright © 2012. All Rights Reserved.