edu.stanford.smi.protegex.owl.ui.conditions.tests
Class ImportTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byedu.stanford.smi.protegex.owl.tests.AbstractOWLTestCase
              extended byedu.stanford.smi.protegex.owl.tests.AbstractJenaTestCase
                  extended byedu.stanford.smi.protegex.owl.ui.conditions.tests.AbstractConditionsTableTestCase
                      extended byedu.stanford.smi.protegex.owl.ui.conditions.tests.ImportTestCase
All Implemented Interfaces:
ConditionsTableConstants, junit.framework.Test

public class ImportTestCase
extends AbstractConditionsTableTestCase

Author:
Holger Knublauch

Field Summary
static String FILE
           
private  OWLObjectProperty hasChildrenProperty
           
private  OWLNamedClass parentCls
           
private  OWLNamedClass personCls
           
private  ConditionsTableModel tableModel
           
 
Fields inherited from class edu.stanford.smi.protegex.owl.ui.conditions.tests.AbstractConditionsTableTestCase
events, INHERITED, NECESSARY, SUFFICIENT
 
Fields inherited from class edu.stanford.smi.protegex.owl.tests.AbstractJenaTestCase
ontModel, owlFullModel
 
Fields inherited from class edu.stanford.smi.protegex.owl.tests.AbstractOWLTestCase
owlModel, owlThing, project
 
Fields inherited from class junit.framework.TestCase
 
Fields inherited from interface edu.stanford.smi.protegex.owl.ui.conditions.ConditionsTableConstants
COL_COUNT, COL_EXPRESSION, TYPE_DEFINITION_BASE, TYPE_INHERITED, TYPE_SUPERCLASS
 
Constructor Summary
ImportTestCase()
           
 
Method Summary
private  void initTestData()
           
 void testAddAndRemoveEquivalentClass()
           
 void testAddingAnonymousClassToImportedClass()
           
 void testAddingNamedClassToImportedClass()
           
 void testAddNamedClassToImportedDefinedClass()
           
 void testAddNamedClassToImportedPrimitiveClass()
           
 void testAddSuperclasses()
           
 void testDeletingFromImportedClass()
           
 
Methods inherited from class edu.stanford.smi.protegex.owl.ui.conditions.tests.AbstractConditionsTableTestCase
assertTableModelStructure, getEvent, getTableModel
 
Methods inherited from class edu.stanford.smi.protegex.owl.tests.AbstractJenaTestCase
getNamedClassesCount, loadRemoteOntology, loadRemoteOntologyWithProtegeMetadataOntology, loadTestOntology, ontResourceExists, reload, reloadWithJenaLoader
 
Methods inherited from class edu.stanford.smi.protegex.owl.tests.AbstractOWLTestCase
assertContains, assertContains, assertContainsNot, assertHasValue, assertSize, assertSize, dumpRDF, getRemoteOntologyURI, getTestOntologyURI, hasTypedLiteral, list, setUp
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hasChildrenProperty

private OWLObjectProperty hasChildrenProperty

parentCls

private OWLNamedClass parentCls

personCls

private OWLNamedClass personCls

tableModel

private ConditionsTableModel tableModel

FILE

public static final String FILE
See Also:
Constant Field Values
Constructor Detail

ImportTestCase

public ImportTestCase()
Method Detail

testAddingNamedClassToImportedClass

public void testAddingNamedClassToImportedClass()
                                         throws Exception
Throws:
Exception

testAddingAnonymousClassToImportedClass

public void testAddingAnonymousClassToImportedClass()
                                             throws Exception
Throws:
Exception

testDeletingFromImportedClass

public void testDeletingFromImportedClass()
                                   throws Exception
Throws:
Exception

testAddSuperclasses

public void testAddSuperclasses()
                         throws Exception
Throws:
Exception

testAddAndRemoveEquivalentClass

public void testAddAndRemoveEquivalentClass()
                                     throws Exception
Throws:
Exception

initTestData

private void initTestData()
                   throws Exception
Throws:
Exception

testAddNamedClassToImportedDefinedClass

public void testAddNamedClassToImportedDefinedClass()
                                             throws Exception
Throws:
Exception

testAddNamedClassToImportedPrimitiveClass

public void testAddNamedClassToImportedPrimitiveClass()
                                               throws Exception
Throws:
Exception