| test.org.mandarax.rdf.AbstractRDFTestCase
All known Subclasses: test.org.mandarax.rdf.RDFClauseSetKBIntegrationTestCase, test.org.mandarax.rdf.RDFClauseSetTestCase, test.org.mandarax.rdf.RDFClauseSetIEIntegrationTestCase, test.org.mandarax.rdf.RDFContainsPredicateTestCase, test.org.mandarax.rdf.RDFContainerTestCase,
AbstractRDFTestCase | abstract public class AbstractRDFTestCase extends TestCase (Code) | | Abstract super class for RDF test cases.
Contains various utility methods.
author: Adrian Paschke Jens Dietrich version: 1.1 <01 August 2004> since: 0.1 |
Method Summary | |
protected static Fact | buildFactWithLiteral(String predicateNS, String predicateLN, String subURI, String value) Create a fact associating a resource with a literal. | protected static Fact | buildFactWithObject(String predicateNS, String predicateLN, String subURI, String objURI) Create a fact associating a resource with an object. | protected boolean | compareObjects(Object object1, Object object2, boolean b) Compare objects.
Parameters: object1 - the expected object Parameters: object2 - the expected subject Parameters: isLiteral - indicates whether a literal (and not a resource is expected. | protected boolean | comparePredicates(Predicate predicate1, Predicate predicate2) Compare predicates. | protected boolean | compareSubjects(Object subject1, Object subject2) Compare subjects. | protected static Object | lit(String value) Factory methods for literals. | protected static void | log(String msg) Log a string. | protected static Object | obj(String uri) Factory methods for objects. | protected static Predicate | p(String ns, String name) Factory methods for predicates. | protected static Object | sub(String uri) Factory methods for subjects. |
TEST_DATA_ROOT | final public static String TEST_DATA_ROOT(Code) | | |
jenaModel | protected static Model jenaModel(Code) | | |
buildFactWithLiteral | protected static Fact buildFactWithLiteral(String predicateNS, String predicateLN, String subURI, String value)(Code) | | Create a fact associating a resource with a literal.
Parameters: predicateNS - the name space of the predicate Parameters: predicateLN - the local name of the predicate Parameters: subURI - the uri of the subject Parameters: value - the literal value |
buildFactWithObject | protected static Fact buildFactWithObject(String predicateNS, String predicateLN, String subURI, String objURI)(Code) | | Create a fact associating a resource with an object.
Parameters: predicateNS - the name space of the predicate Parameters: predicateLN - the local name of the predicate Parameters: subURI - the uri of the subject Parameters: objURI - the uri of the object |
compareObjects | protected boolean compareObjects(Object object1, Object object2, boolean b)(Code) | | Compare objects.
Parameters: object1 - the expected object Parameters: object2 - the expected subject Parameters: isLiteral - indicates whether a literal (and not a resource is expected. a boolean (the result of comparing the objects) |
comparePredicates | protected boolean comparePredicates(Predicate predicate1, Predicate predicate2)(Code) | | Compare predicates.
Parameters: predicate1 - the expected predicate Parameters: predicate2 - the imported predicate a boolean (the result of comparing the objects) |
compareSubjects | protected boolean compareSubjects(Object subject1, Object subject2)(Code) | | Compare subjects.
Parameters: subject1 - the expected subject Parameters: subject2 - the computed subject a boolean (the result of comparing the objects) |
lit | protected static Object lit(String value)(Code) | | Factory methods for literals.
Parameters: value - the literal an object |
log | protected static void log(String msg)(Code) | | Log a string.
Parameters: msg - a string |
obj | protected static Object obj(String uri)(Code) | | Factory methods for objects.
Parameters: uri - the object uri an object |
p | protected static Predicate p(String ns, String name)(Code) | | Factory methods for predicates.
Parameters: ns - the name space Parameters: name - the predicate name a predicate |
sub | protected static Object sub(String uri)(Code) | | Factory methods for subjects.
Parameters: uri - the subject uri a subject |
|
|