de.fuberlin.wiwiss.d2rq.functional_tests
Class RDQLTest

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

public class RDQLTest
extends RDQLTestFramework

Functional tests that exercise a ModelD2RQ by running RDQL queries against it. For notes on running the tests, see AllTests. Each test method runs one RDQL query 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 values are compared against expected values. If a test fails, the dump() method can be handy. It shows the actual results 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.RDQLTestFramework
compareQueryHandlers, differenceLogger, differentLogger, logger, model, performanceLogger, queryString, rdqlLogger, results, rsLogger, separator
 
Fields inherited from class de.fuberlin.wiwiss.d2rq.TestFramework
D2RQMap, NS, xsdString, xsdYear
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
RDQLTest(java.lang.String arg0)
           
 
Method Summary
 void testRDQLFetch()
           
 void testRDQLGetAuthorsAndEmails()
           
 void testRDQLGetAuthorsAndEmailsWithCondition()
           
 void testRDQLGetAuthorsNameAndEmail()
           
 void testRDQLGetAuthorsOfPaperByTitle()
           
 void testRDQLGetTopics()
           
 
Methods inherited from class de.fuberlin.wiwiss.d2rq.RDQLTestFramework
assertResult, assertResultCount, containsAll, dump, rdql, resultBindingsToMaps, resultBindingToMap, runTest, setUp, tearDown
 
Methods inherited from class de.fuberlin.wiwiss.d2rq.TestFramework
getD2RQMap, getNS, run, 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

RDQLTest

public RDQLTest(java.lang.String arg0)
Method Detail

testRDQLFetch

public void testRDQLFetch()

testRDQLGetAuthorsAndEmails

public void testRDQLGetAuthorsAndEmails()

testRDQLGetAuthorsAndEmailsWithCondition

public void testRDQLGetAuthorsAndEmailsWithCondition()

testRDQLGetTopics

public void testRDQLGetTopics()

testRDQLGetAuthorsOfPaperByTitle

public void testRDQLGetAuthorsOfPaperByTitle()

testRDQLGetAuthorsNameAndEmail

public void testRDQLGetAuthorsNameAndEmail()