JUnitTemporaryDatabase
and autowire a
DatabasePopulator to insert a standard set of content into the database. The context that contains the
DatabasePopulator is classpath:/META-INF/opennms/applicationContext-databasePopulator.xml
.public class PopulatedTemporaryDatabaseITCase extends TemporaryDatabaseITCase
TemporaryDatabaseITCase.TestFailureAndTearDownErrorException
jdbcTemplate, watcher
Constructor and Description |
---|
PopulatedTemporaryDatabaseITCase()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected File |
findIpLikeLibrary()
Deprecated.
|
protected InstallerDb |
getInstallerDb()
Deprecated.
|
ByteArrayOutputStream |
getOutputStream()
Deprecated.
|
protected void |
initializeDatabase()
Deprecated.
|
void |
resetOutputStream()
Deprecated.
|
void |
setInsertData(boolean insertData)
Deprecated.
|
void |
setSetupIpLike(boolean setupIpLike)
Deprecated.
|
void |
setUp()
Deprecated.
|
executeSQL, executeSQL, fail, getAdminDataSource, getAdminPassword, getAdminUser, getConnection, getDataSource, getDriver, getJdbcTemplate, getTestDatabase, getTestDatabaseName, getTestFailureThrowable, getUrl, hasTestFailed, setDataSource, setTestFailureThrowable, tearDown, testNothing
public PopulatedTemporaryDatabaseITCase()
public void setUp() throws Exception
setUp
in class TemporaryDatabaseITCase
Exception
protected void initializeDatabase() throws Exception
Exception
protected File findIpLikeLibrary()
public ByteArrayOutputStream getOutputStream()
public void resetOutputStream()
public void setInsertData(boolean insertData)
public void setSetupIpLike(boolean setupIpLike)
protected InstallerDb getInstallerDb()
Copyright © 2020. All rights reserved.