de.fuberlin.wiwiss.d2rq
Class DBConnectionTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byde.fuberlin.wiwiss.d2rq.DBConnectionTest
All Implemented Interfaces:
junit.framework.Test

public class DBConnectionTest
extends junit.framework.TestCase

Author:
jgarbers TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
private  java.lang.String complexQuery
           
private  java.util.Collection databases
           
private  Database firstDatabase
           
private  com.hp.hpl.jena.rdf.model.Model mapModel
           
private  MapParser parser
           
private  java.lang.String simplestQuery
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
DBConnectionTest()
           
DBConnectionTest(java.lang.String arg0)
           
 
Method Summary
 java.sql.Connection manuallyConfiguredConnection()
           
private static java.lang.String performQuery(java.sql.Connection c, java.lang.String theQuery)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testConnections()
           
 void testDistinct()
           
 void testLong()
           
 void testManuallyConfiguredConnection()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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
 

Field Detail

mapModel

private com.hp.hpl.jena.rdf.model.Model mapModel

parser

private MapParser parser

databases

private java.util.Collection databases

firstDatabase

private Database firstDatabase

simplestQuery

private java.lang.String simplestQuery

complexQuery

private java.lang.String complexQuery
Constructor Detail

DBConnectionTest

public DBConnectionTest()

DBConnectionTest

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

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testConnections

public void testConnections()

performQuery

private static java.lang.String performQuery(java.sql.Connection c,
                                             java.lang.String theQuery)

manuallyConfiguredConnection

public java.sql.Connection manuallyConfiguredConnection()

testManuallyConfiguredConnection

public void testManuallyConfiguredConnection()
                                      throws java.sql.SQLException
Throws:
java.sql.SQLException

testDistinct

public void testDistinct()
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

testLong

public void testLong()
              throws java.sql.SQLException
Throws:
java.sql.SQLException