edu.stanford.smi.protegex.owl.tests
Class AbstractJenaTestCase

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
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractConditionsTableTestCase, AbstractDIGReasonerTestCase, AbstractJenaCreatorTestCase, AbstractOWLClassRendererTestCase, AbstractOWLImporterTestCase, AbstractOWLNAryLogicalClassTestCase, AbstractOWLPropertyTestCase, AbstractProtege2JenaTestCase, AbstractRDFSClassTestCase, AbstractRDFXMLWriterTestCases, AbstractSWRLTestCase, AbstractTripleStoreTestCase, AddClosureAxiomTestCase, AddCoveringAxiomActionTestCase, AddRDFSLiteralTestCase, AllValuesFromRestrictionUpdaterTestCase, AnnotationPropertyTestCase, AnnotationsTableModelTestCase, AnonymousResourceTestCase, CardinalityRestrictionUpdaterTestCase, ChangeRDFTypeTestCase, ClassListenerTestCase, ClosureAxiomFactoryTestCase, ConvertIndividualToClassActionTestCase, ConvertToDefinedClsActionTestCase, ConvertToPrimitiveClsActionTestCase, DatatypeEnumerationTestCase, DefaultExplorerFilterTestCase, DefaultOWLAllDifferentTestCase, DefaultOWLAllValuesFromTestCase, DefaultOWLCardinalityTestCase, DefaultOWLComplementClassTestCase, DefaultOWLDataRangeTestCase, DefaultOWLDatatypePropertyTestCase, DefaultOWLEnumeratedClassTestCase, DefaultOWLHasValueTestCase, DefaultOWLIntersectionClassTestCase, DefaultOWLModelPatcherTestCase, DefaultOWLNamedClassTestCase, DefaultOWLObjectPropertyTestCase, DefaultOWLOntologyTestCase, DefaultOWLUnionClassTestCase, DefaultPropertyValueValidatorTestCase, DefaultRDFIndividualTestCase, DefaultRDFListTestCase, DefaultRDFPropertyTestCase, DefaultRDFSDatatypeTestCase, DefaultRDFSLiteralTestCase, DefaultRDFUntypedResourceTestCase, DefaultTripleStoreTestCase, DefaultTripleTestCase, DefaultURI2NameConverterTestCase, DeleteClassTestCase, DeleteListEntryTestCase, DeletePropertyTestCase, DeletePropertyTestCase, DeleteTestCase, DependingDeleteTestCase, DeprecationTestCase, DisjointClassesTableModelTestCase, DisjointTests, DomainTestCase, EqualsStructurallyTestCase, EquivalentClassTestCase, ExistentialTestCase, ExplorerTreeNodeTestCase, FacetConstraintsTestTestCase, FillerTextAreaTestCase, FindUsageAsDisjointClassTestCase, FindUsageAsRangeTestCase, FindUsageAsSuperclassTestCase, FindUsageChangedTestCase, FindUsageOfIndividualTestCase, GetAssociatedPropertiesTestCase, GetCommonSuperclassTestCase, GetDependingClassesTestCase, GetExpressionRootTestCase, GetPropertyValuesTestCase, GetReferringAnonymousClassesTestCase, HasValueRestrictionUpdaterTestCase, HomeTripleStoreTestCase, IndividualTests, InferredSuperclassesTestCase, InverseOfSubSlotMustBeSubSlotOfInverseOfSuperSlotTestTestCase, InverseOfTopLevelSlotMustBeTopLevelSlotTestTestCase, JenaModelFactoryTestCase, ListTriplesTestCase, LiteralTableModelTestCase, LoadAxiomsTestCase, LoadDuplicateAnonymousSuperclassTestCase, LoadImportsTestCase, LoadKoalaTestCase, LoadMetaclassesTestCase, LoadNamespacesTestCase, LoadObjectAnnotationPropertyValuesTestCase, LoadOWLDataRangeTestCase, LoadOWLDeprecatedClassTestCase, LoadOWLDeprecatedPropertyTestCase, LoadOWLEnumeratedClassTestCase, LoadOWLEquivalentClassTestCase, LoadOWLFunctionalPropertyTestCase, LoadOWLHasValueTestCase, LoadOWLNothingTestCase, LoadOWLObjectPropertiesTestCase, LoadOWLSTestCase, LoadProtegeFeaturesTestCase, LoadRDFExternalResourceTestCase, LoadRDFFileTestCase, LoadRDFListTestCase, LoadRDFPropertiesTestCase, LoadRDFSDomainTestCase, LoadRDFSSubPropertyOfTestCase, LoadSubclassesDisjointTestCase, LoadSWRLTestCase, LoadSymmetricPropertiesTestCase, LoadURNNamespacesTestCase, LoadWineTestCase, LoadXMLLiteralTestCase, LoadXMLSchemaDatatypesTestCase, MatrixTableModelTestCase, ModelListenerTestCase, MultilingualBrowserTextTestCase, MultiResourceListModelTestCase, MultiResourceListTestCase, MultiResourceWidgetMetadataTestCase, NamespacePrefixTestCase, NAryLogicalClassTestCase, NoCardiRestrictionOnTransitivePropertiesOWLTestTestTest, OWL2OWLCopierTestCase, OWLClassRendererFactoryTestCase, OWLDomainTableModelTestCase, OWLFrameStoreTestCase, OWLInverseOfTestCase, OWLModelGetOWLIndividualsTestCase, OWLModelTestCase, OWLUtilTestCase, OWLWidgetMapperTestCase, ParseDatatypeEnumerationsTestCase, ParseQuantifierRestrictionsTestCase, ParseRDFSDatatypesTestCase, PolymorphismTestCase, ProfileCacheTestCase, ProfilesManagerTestCase, PropertiesClassesTableModelTestCase, PropertiesDefinitionTableModelTestCase, PropertyFormTableModelTestCase, PropertyListenerTestCase, PropertyRangeRedundancyTestTestCase, PropertyRestrictionsTreeTestCase, PropertyTreeNodeTestCase, PropertyValueValidatorTestCase, ProtegeFramesTestCase, ProtegeGraphTestCase, ProtegePrefixMappingTestCase, ProtegeWriterSettingsTestCase, QueryTestCase, RDFDatatypesTestCase, RDFListComponentTestCase, RDFListTestCase, RDFPropertiesTableModelTestCase, RDFPropertyRangeTestCase, RDFSClassCodeTestCase, RDFSDomainTestCase, RDFTypeTestCase, ResourceListenerTestCase, RestrictionEditorPanelTestCase, SatisfiabilityTests, SetClassTypeTestCase, SetPropertyTypeTestCase, SetResourceActionTestCase, SingleResourceComponentTestCase, SingleResourceWidgetMetadataTestCase, SPARQLQueryResultsTestCase, StringValueTestCase, SubclassesDisjointTestCase, SubpropertyOfAnnotationPropertyTestCase, SubPropertyRangeMustNarrowTestTestCase, SubsumptionTests, SufficientlyExpressiveTestCase, SWRLJavaFactoryTestCase, SWRLProjectPluginTestCase, SymmetricSlotMustHaveEqualRangeAndDomainTestTestCase, SynchronizeSuperclassesTestCase, SynonymSearchTestCase, SystemMetamodelTestCase, TriplesTableModelTestCase, ValidNamesTestCase, WidgetConstraintViolationsTestCase, XSDVisibilityTestCase

public abstract class AbstractJenaTestCase
extends AbstractOWLTestCase

The base class of various JUnit tests in this package.

Author:
Holger Knublauch

Field Summary
protected  com.hp.hpl.jena.ontology.OntModel ontModel
           
protected  com.hp.hpl.jena.rdf.model.Model owlFullModel
           
 
Fields inherited from class edu.stanford.smi.protegex.owl.tests.AbstractOWLTestCase
owlModel, owlThing, project
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
AbstractJenaTestCase()
           
 
Method Summary
protected  int getNamedClassesCount()
           
 void loadRemoteOntology(String localFileName)
           
protected  void loadRemoteOntologyWithProtegeMetadataOntology()
           
 void loadTestOntology(URI uri)
           
protected  boolean ontResourceExists(Iterator it, String uri)
           
static JenaOWLModel reload(JenaOWLModel owlModel)
           
 JenaOWLModel reloadWithJenaLoader(JenaOWLModel owlModel)
           
 
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

ontModel

protected com.hp.hpl.jena.ontology.OntModel ontModel

owlFullModel

protected com.hp.hpl.jena.rdf.model.Model owlFullModel
Constructor Detail

AbstractJenaTestCase

public AbstractJenaTestCase()
Method Detail

getNamedClassesCount

protected int getNamedClassesCount()

loadRemoteOntology

public void loadRemoteOntology(String localFileName)
                        throws Exception
Throws:
Exception

loadRemoteOntologyWithProtegeMetadataOntology

protected void loadRemoteOntologyWithProtegeMetadataOntology()
                                                      throws Exception
Throws:
Exception

loadTestOntology

public void loadTestOntology(URI uri)
                      throws Exception
Throws:
Exception

ontResourceExists

protected boolean ontResourceExists(Iterator it,
                                    String uri)

reload

public static JenaOWLModel reload(JenaOWLModel owlModel)
                           throws Exception
Throws:
Exception

reloadWithJenaLoader

public JenaOWLModel reloadWithJenaLoader(JenaOWLModel owlModel)
                                  throws Exception
Throws:
Exception