edu.stanford.smi.protegex.owl.tests
Class AbstractOWLTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
edu.stanford.smi.protegex.owl.tests.AbstractOWLTestCase
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- AbstractJenaTestCase
- public abstract class AbstractOWLTestCase
- extends junit.framework.TestCase
The base class of various JUnit tests for OWL.
- Author:
- Holger Knublauch
Fields inherited from class junit.framework.TestCase |
|
Method Summary |
static void |
assertContains(Object value,
Collection collection)
|
static void |
assertContains(Object value,
Iterator it)
|
static void |
assertContainsNot(Object value,
Iterator it)
|
static void |
assertHasValue(com.hp.hpl.jena.ontology.OntResource individual,
com.hp.hpl.jena.ontology.OntProperty property,
edu.stanford.smi.protege.model.ValueType valueType,
Object expectedValue)
|
static void |
assertSize(int size,
Collection c)
|
static void |
assertSize(int size,
Iterator it)
|
protected void |
dumpRDF()
|
static URI |
getRemoteOntologyURI(String localFileName)
|
static URI |
getTestOntologyURI(String localFileName)
|
boolean |
hasTypedLiteral(com.hp.hpl.jena.rdf.model.Resource resource,
com.hp.hpl.jena.ontology.DatatypeProperty property,
Object value)
|
protected static List |
list(Iterator it)
|
protected void |
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 |
owlModel
protected JenaOWLModel owlModel
project
protected edu.stanford.smi.protege.model.Project project
owlThing
protected OWLNamedClass owlThing
AbstractOWLTestCase
public AbstractOWLTestCase()
assertContains
public static void assertContains(Object value,
Collection collection)
assertContains
public static void assertContains(Object value,
Iterator it)
assertContainsNot
public static void assertContainsNot(Object value,
Iterator it)
assertHasValue
public static void assertHasValue(com.hp.hpl.jena.ontology.OntResource individual,
com.hp.hpl.jena.ontology.OntProperty property,
edu.stanford.smi.protege.model.ValueType valueType,
Object expectedValue)
assertSize
public static void assertSize(int size,
Collection c)
assertSize
public static void assertSize(int size,
Iterator it)
dumpRDF
protected void dumpRDF()
getRemoteOntologyURI
public static URI getRemoteOntologyURI(String localFileName)
getTestOntologyURI
public static URI getTestOntologyURI(String localFileName)
hasTypedLiteral
public boolean hasTypedLiteral(com.hp.hpl.jena.rdf.model.Resource resource,
com.hp.hpl.jena.ontology.DatatypeProperty property,
Object value)
list
protected static List list(Iterator it)
setUp
protected void setUp()
throws Exception
- Throws:
Exception