nl.surfnet.coin.db
Class AbstractInMemoryDatabaseTest

java.lang.Object
  extended by nl.surfnet.coin.db.AbstractInMemoryDatabaseTest

public abstract class AbstractInMemoryDatabaseTest
extends Object

Abstract class for running in-memory unit tests


Constructor Summary
AbstractInMemoryDatabaseTest()
           
 
Method Summary
 void afterClass()
           
 void before()
          We use an in-memory database - no need for Spring in this one - and populate it with the sql statements in test-data-eb.sql
protected  String getDataSourceUrl()
           
 org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
           
abstract  String getMockDataCleanUpFilename()
           
abstract  String getMockDataContentFilename()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInMemoryDatabaseTest

public AbstractInMemoryDatabaseTest()
Method Detail

getMockDataContentFilename

public abstract String getMockDataContentFilename()
Returns:
the path/filename of a sql file with database content

getMockDataCleanUpFilename

public abstract String getMockDataCleanUpFilename()
Returns:
the path/filename of a sql file with database cleanup commands

before

public void before()
            throws Exception
We use an in-memory database - no need for Spring in this one - and populate it with the sql statements in test-data-eb.sql

Throws:
Exception - unexpected

getDataSourceUrl

protected String getDataSourceUrl()

afterClass

public void afterClass()
                throws Exception
Throws:
Exception

getJdbcTemplate

public org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
Returns:
the jdbcTemplate


Copyright © 2012. All Rights Reserved.