org.semanticweb.owlapi.model
Class AbstractOWLDataFactoryTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.semanticweb.owlapi.model.AbstractOWLTestCase
              extended by org.semanticweb.owlapi.model.AbstractOWLDataFactoryTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractOWLBinaryOperandAxiomTestCase, AbstractOWLEntityTestCase, AbstractOWLIndividualRelationshipAxiomTestCase, AbstractOWLNaryOperandsObjectTestCase, AbstractOWLObjectCardinalityRestrictionTestCase, AbstractOWLOntologyManagerTestCase, AbstractOWLPropertyCharacteristicTestCase, AbstractOWLRestrictionTestCase, OWLDataRangeNotTestCase, OWLDatatypeTestCase, OWLNotTestCase, OWLObjectSelfRestrictionTestCase, OWLRestrictedDataRangeTestCase, OWLTypedConstantTestCase, OWLUntypedConstantTestCase

public abstract class AbstractOWLDataFactoryTest
extends AbstractOWLTestCase

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group Date: 25-Oct-2006

The base for test cases that need a data factory.


Constructor Summary
AbstractOWLDataFactoryTest()
           
 
Method Summary
static void assertNotEquals(java.lang.Object objA, java.lang.Object objB)
           
static IRI createIRI()
           
protected  OWLClass createOWLClass()
           
protected  OWLDataProperty createOWLDataProperty()
           
protected  OWLDatatype createOWLDatatype()
           
protected  OWLIndividual createOWLIndividual()
           
protected  OWLObjectProperty createOWLObjectProperty()
           
protected  OWLTypedLiteral createOWLTypedConstant()
           
protected  void setUp()
           
abstract  void testCreation()
           
abstract  void testEqualsNegative()
           
abstract  void testEqualsPositive()
           
abstract  void testHashCode()
           
 
Methods inherited from class org.semanticweb.owlapi.model.AbstractOWLTestCase
getOWLDataFactory, getOWLOntologyManager, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractOWLDataFactoryTest

public AbstractOWLDataFactoryTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class AbstractOWLTestCase
Throws:
java.lang.Exception

createIRI

public static IRI createIRI()

testCreation

public abstract void testCreation()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testEqualsPositive

public abstract void testEqualsPositive()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testEqualsNegative

public abstract void testEqualsNegative()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testHashCode

public abstract void testHashCode()
                           throws java.lang.Exception
Throws:
java.lang.Exception

assertNotEquals

public static void assertNotEquals(java.lang.Object objA,
                                   java.lang.Object objB)

createOWLObjectProperty

protected OWLObjectProperty createOWLObjectProperty()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

createOWLClass

protected OWLClass createOWLClass()
                           throws java.lang.Exception
Throws:
java.lang.Exception

createOWLIndividual

protected OWLIndividual createOWLIndividual()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

createOWLDataProperty

protected OWLDataProperty createOWLDataProperty()
                                         throws OWLException
Throws:
OWLException

createOWLDatatype

protected OWLDatatype createOWLDatatype()
                                 throws OWLException
Throws:
OWLException

createOWLTypedConstant

protected OWLTypedLiteral createOWLTypedConstant()
                                          throws OWLException
Throws:
OWLException