nl.surfnet.coin.db
Class AbstractInMemoryDatabaseTest
java.lang.Object
nl.surfnet.coin.db.AbstractInMemoryDatabaseTest
public abstract class AbstractInMemoryDatabaseTest
- extends Object
Abstract class for running in-memory unit tests
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractInMemoryDatabaseTest
public AbstractInMemoryDatabaseTest()
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.