test.wsmo4j.validator
Class ValidatorConceptualTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.wsmo4j.validator.ValidatorTestCase
              extended by test.wsmo4j.validator.ValidatorConceptualTests
All Implemented Interfaces:
junit.framework.Test

public class ValidatorConceptualTests
extends ValidatorTestCase

Different error types are tested via constructed invalid ontology element definitions.

 Created on Dec 19, 2005
 Committed by $Author: nathaliest $
 $Source$,
 

Version:
$Revision: 1840 $ $Date: 2006-10-05 19:23:39 +0300 (Thu, 05 Oct 2006) $
Author:
nathalie.steinmetz@deri.org

Field Summary
 
Fields inherited from class test.wsmo4j.validator.ValidatorTestCase
axiom, dataFactory, errors, factory, le, leFactory, leSet, ns, ontology, parser, warnings
 
Constructor Summary
ValidatorConceptualTests()
           
 
Method Summary
 void testAttributeFeatures()
          This tests checks if attribute features are allowed on attributes with a datatype on their range.
 void testConstrainingDataType()
          This test checks for the validity of constraining attributes.
 void testIncompleteAttribute()
          Tests an attribute without a range.
 void testRelationDef()
          Tests a relation with only some of the parameters defined.
 void testSameID()
          This tests checks for ids, that are used for more than one single type.
 
Methods inherited from class test.wsmo4j.validator.ValidatorTestCase
createAxiomDef, getOntHeader, getOntLocalName, printError, printWarning, removeAxiomDef, setUp, 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

ValidatorConceptualTests

public ValidatorConceptualTests()
Method Detail

testAttributeFeatures

public void testAttributeFeatures()
                           throws Exception
This tests checks if attribute features are allowed on attributes with a datatype on their range.

Throws:
Exception

testSameID

public void testSameID()
                throws Exception
This tests checks for ids, that are used for more than one single type.

Throws:
Exception

testConstrainingDataType

public void testConstrainingDataType()
                              throws Exception
This test checks for the validity of constraining attributes.

Throws:
Exception

testIncompleteAttribute

public void testIncompleteAttribute()
                             throws Exception
Tests an attribute without a range.

Throws:
Exception

testRelationDef

public void testRelationDef()
                     throws Exception
Tests a relation with only some of the parameters defined.

Throws:
Exception


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.