de.fuberlin.wiwiss.d2rq.functional_tests
Class FindTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byde.fuberlin.wiwiss.d2rq.TestFramework
              extended byde.fuberlin.wiwiss.d2rq.FindTestFramework
                  extended byde.fuberlin.wiwiss.d2rq.functional_tests.FindTest
All Implemented Interfaces:
junit.framework.Test

public class FindTest
extends FindTestFramework

Functional tests for the find(spo) operation of GraphD2RQ. For notes on running the tests, see AllTests. Each test method runs one or more find queries and automatically compares the actual results to the expected results. For some tests, only the number of returned triples is checked. For others, the returned triples are compared against expected triples. If a test fails, the dump() method can be handy. It shows the actual triples returned by a query on System.out. To see debug information, uncomment the enableDebug() call in the setUp() method.

Author:
Richard Cyganiak

Field Summary
 
Fields inherited from class de.fuberlin.wiwiss.d2rq.FindTestFramework
graph, resultTriples
 
Fields inherited from class de.fuberlin.wiwiss.d2rq.TestFramework
D2RQMap, NS, xsdString, xsdYear
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
FindTest(java.lang.String arg0)
          Constructor for FindTest.
 
Method Summary
 void testDump()
           
 void testFetchAnonAndReverse()
           
 void testFindPredicate()
           
 void testFindSubjectWhereObjectURIColumn()
           
 void testFindSubjectWhereObjectURIPattern()
           
 void testFindSubjectWithConditionalObject()
           
 void testListAuthors()
           
 void testListTopicInstances()
           
 void testListTopicNames()
           
 void testListTypeStatements()
           
 void testLiteralDatatype()
           
 void testLiteralLanguage()
           
 void testMatchAnonymousNode()
           
 void testReverseFetchWithDatatype()
           
 void testReverseFetchWithURI()
           
 
Methods inherited from class de.fuberlin.wiwiss.d2rq.FindTestFramework
assertNoTriple, assertTriple, assertTripleCount, dump, find, setUp, tearDown
 
Methods inherited from class de.fuberlin.wiwiss.d2rq.TestFramework
getD2RQMap, getNS, run, runTest, setD2RQMap, setNS
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runBare, setName, 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
 

Constructor Detail

FindTest

public FindTest(java.lang.String arg0)
Constructor for FindTest.

Parameters:
arg0 -
Method Detail

testListTypeStatements

public void testListTypeStatements()

testListTopicInstances

public void testListTopicInstances()

testListTopicNames

public void testListTopicNames()

testListAuthors

public void testListAuthors()

testLiteralDatatype

public void testLiteralDatatype()

testLiteralLanguage

public void testLiteralLanguage()

testFindSubjectWhereObjectURIColumn

public void testFindSubjectWhereObjectURIColumn()

testFindSubjectWithConditionalObject

public void testFindSubjectWithConditionalObject()

testFindSubjectWhereObjectURIPattern

public void testFindSubjectWhereObjectURIPattern()

testMatchAnonymousNode

public void testMatchAnonymousNode()

testDump

public void testDump()

testFetchAnonAndReverse

public void testFetchAnonAndReverse()

testFindPredicate

public void testFindPredicate()

testReverseFetchWithDatatype

public void testReverseFetchWithDatatype()

testReverseFetchWithURI

public void testReverseFetchWithURI()