com.hp.hpl.jena.daml.test
Class DAMLTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.hp.hpl.jena.daml.test.DAMLTest
All Implemented Interfaces:
junit.framework.Test

public class DAMLTest
extends junit.framework.TestCase

JUnit regression tests for the Jena DAML model.

Version:
CVS info: $Id: DAMLTest.java,v 1.24 2002/07/02 09:54:07 jeremy_carroll Exp $,
Author:
Ian Dickinson, HP Labs (email)

Constructor Summary
DAMLTest(java.lang.String name)
          Constructor requires that all tests be named
 
Method Summary
static void dumpModel(Model m)
          Dump the model out to a file for debugging
static void dumpModel(Model m, java.lang.String fileName)
           
 void setUp()
          Set up the test conditions
static junit.framework.Test suite()
          Answer a suite of all the tests defined here
 void tearDown()
          Release objects no longer needede when we're done
 void testClass()
          Test some of the properties of DAML classes
 void testCreate()
          Test the creation of new DAML values
 void testDatatype()
          Tests on DAML datatypes
 void testDatatypeEq1()
          Testing equality: case Datatype
 void testDatatypeEq2()
          Testing equality: case Datatype
 void testDatatypeProperty()
          Testing equality: case DatatypeProperty
 void testDatatypeRange()
           
 void testEquivalence()
          Test equivalance classes
 void testInstance()
          Tests on instances
 void testList()
          Tests on lists
 void testLoadOntology()
          Test the various pathways through loading the ontology from a source document.
 void testModelAdd()
          Test adding a model to an existing model
 void testObjectProperty()
          Testing equality: case ObjectProperty
 void testProperty()
          Unit tests on DAMLProperty and its subclasses
 void testPropertyEq()
          Testing equality: case Property
 void testRDFType()
          Test case for testing rdf:type traversal
 void testRemove()
          Test the removal of DAML objects.
 void testRestriction()
          Testing restrictions
 void testSyntaxError()
          Test reading a model with a syntax error in it.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, name, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DAMLTest

public DAMLTest(java.lang.String name)
Constructor requires that all tests be named

Parameters:
name - The name of this test
Method Detail

suite

public static junit.framework.Test suite()
Answer a suite of all the tests defined here


setUp

public void setUp()
Set up the test conditions

Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
Release objects no longer needede when we're done

Overrides:
tearDown in class junit.framework.TestCase

testLoadOntology

public void testLoadOntology()
                      throws RDFException
Test the various pathways through loading the ontology from a source document.

RDFException

testRDFType

public void testRDFType()
                 throws RDFException
Test case for testing rdf:type traversal

RDFException

testClass

public void testClass()
               throws RDFException
Test some of the properties of DAML classes

RDFException

testEquivalence

public void testEquivalence()
                     throws RDFException
Test equivalance classes

RDFException

testProperty

public void testProperty()
                  throws RDFException
Unit tests on DAMLProperty and its subclasses

RDFException

testList

public void testList()
              throws RDFException
Tests on lists

RDFException

testInstance

public void testInstance()
                  throws RDFException
Tests on instances

RDFException

testDatatype

public void testDatatype()
                  throws RDFException
Tests on DAML datatypes

RDFException

testRemove

public void testRemove()
                throws RDFException
Test the removal of DAML objects. We'll load a model, then delete everything in it one step at a time.

RDFException

testCreate

public void testCreate()
                throws RDFException
Test the creation of new DAML values

RDFException

testRestriction

public void testRestriction()
                     throws RDFException
Testing restrictions

RDFException

testModelAdd

public void testModelAdd()
                  throws RDFException
Test adding a model to an existing model

Throws:
RDFException

testSyntaxError

public void testSyntaxError()
                     throws RDFException
Test reading a model with a syntax error in it.

Throws:
RDFException

testDatatypeProperty

public void testDatatypeProperty()
                          throws RDFException
Testing equality: case DatatypeProperty

RDFException

testObjectProperty

public void testObjectProperty()
                        throws RDFException
Testing equality: case ObjectProperty

RDFException

testPropertyEq

public void testPropertyEq()
                    throws RDFException
Testing equality: case Property

RDFException

testDatatypeEq1

public void testDatatypeEq1()
                     throws RDFException
Testing equality: case Datatype

RDFException

testDatatypeEq2

public void testDatatypeEq2()
                     throws RDFException
Testing equality: case Datatype

RDFException

testDatatypeRange

public void testDatatypeRange()
                       throws RDFException
RDFException

dumpModel

public static void dumpModel(Model m)
Dump the model out to a file for debugging


dumpModel

public static void dumpModel(Model m,
                             java.lang.String fileName)


Copyright © 2001 Hewlett-Packard. All Rights Reserved.