test.wsmo4j.ontology
Class ConceptTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.wsmo4j.Wsmo4jTestCase
              extended by test.wsmo4j.ontology.ConceptTest
All Implemented Interfaces:
junit.framework.Test

public class ConceptTest
extends Wsmo4jTestCase

Title: WSMO4J

Description: WSMO API and a Reference Implementation

Copyright: Copyright (c) 2004-2005

Company: OntoText Lab. / SIRMA

Version:
1.0
Author:
not attributable

Field Summary
 
Fields inherited from class test.wsmo4j.Wsmo4jTestCase
dataFactory, factory, leFactory
 
Constructor Summary
ConceptTest()
           
 
Method Summary
 void setUp()
           
 void testAttributes()
          Test the createAttribute / addType / removeAttribute + all attribute properties.
 void testAttributeValues()
          Test addAttributeValue / removeAttributeValue / listAttributeValue.
 void testConceptInheritance()
          Test the concept inheritance addSubConcept / addSuperConcept / removeSubConcept / removeSuperConcept / listSubConcepts.
 void testInstance()
          Test the correctness of the 3 possible ways to create instance.
 
Methods inherited from class test.wsmo4j.Wsmo4jTestCase
createIRI, createIRI
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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

ConceptTest

public ConceptTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class Wsmo4jTestCase
Throws:
Exception

testConceptInheritance

public void testConceptInheritance()
                            throws Exception
Test the concept inheritance addSubConcept / addSuperConcept / removeSubConcept / removeSuperConcept / listSubConcepts.

Throws:
Exception

testAttributes

public void testAttributes()
                    throws Exception
Test the createAttribute / addType / removeAttribute + all attribute properties.

Throws:
Exception

testInstance

public void testInstance()
                  throws Exception
Test the correctness of the 3 possible ways to create instance.

Throws:
Exception

testAttributeValues

public void testAttributeValues()
                         throws Exception
Test addAttributeValue / removeAttributeValue / listAttributeValue.

Throws:
Exception


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