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.14 2002/03/05 14:15:39 ian_dickinson 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 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 testProperty()
          Unit tests on DAMLProperty and its subclasses
 void testRDFType()
          Test case for testing rdf:type traversal
 void testRemove()
          Test the removal of DAML objects.
 void testRestriction()
          Testing restrictions
 
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

tearDown

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

testLoadOntology

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

testRDFType

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

testClass

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

testEquivalence

public void testEquivalence()
                     throws RDFException
Test equivalance classes

testProperty

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

testList

public void testList()
              throws RDFException
Tests on lists

testInstance

public void testInstance()
                  throws RDFException
Tests on instances

testDatatype

public void testDatatype()
                  throws RDFException
Tests on DAML datatypes

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.

testCreate

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

testRestriction

public void testRestriction()
                     throws RDFException
Testing restrictions
Parameters:
m -  

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.