Package com.avoka.fc.core.test
Class H2TestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.avoka.fc.core.test.CayenneTestCase
com.avoka.fc.core.test.H2TestCase
- All Implemented Interfaces:
junit.framework.Test
- Direct Known Subclasses:
BaseH2TestCase
Deprecated.
Provides an in-memory H2 Test Case.
- Since:
- 4.3.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String[]Deprecated.protected abstract StringDeprecated.protected abstract StringDeprecated.protected abstract StringDeprecated.protected voidinitDatabaseSchema(org.apache.cayenne.access.DataNode dataNode, org.apache.cayenne.map.DataMap dataMap) Deprecated.Create the demonstration database schema using the given Cayenne DataNode and DataMap.protected abstract voidDeprecated.protected voidsetUp()Deprecated.This method is called before a test is executed, creating a DataContext and associating it to the current Thread.protected voidDeprecated.Set up the test case data source.protected voidtearDown()Deprecated.This method is called after a test is executed, removing the DataContext from the Thread.Methods inherited from class com.avoka.fc.core.test.CayenneTestCase
assertDateEquals, getDataContextMethods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
Constructor Details
-
H2TestCase
public H2TestCase()Deprecated.
-
-
Method Details
-
setUp
Deprecated.This method is called before a test is executed, creating a DataContext and associating it to the current Thread.- Overrides:
setUpin classCayenneTestCase- Throws:
Exception- See Also:
-
tearDown
Deprecated.Description copied from class:CayenneTestCaseThis method is called after a test is executed, removing the DataContext from the Thread.- Overrides:
tearDownin classCayenneTestCase- Throws:
Exception- See Also:
-
setupDataSource
Deprecated.Set up the test case data source.- Throws:
Exception- if an error occurs
-
initDatabaseSchema
protected void initDatabaseSchema(org.apache.cayenne.access.DataNode dataNode, org.apache.cayenne.map.DataMap dataMap) throws Exception Deprecated.Create the demonstration database schema using the given Cayenne DataNode and DataMap.- Parameters:
dataNode- the Cayenne DataNodedataMap- the Cayenne DataMap- Throws:
Exception
-
loadTestData
Deprecated.- Throws:
Exception
-
getDataSourceUrl
Deprecated.- Throws:
Exception
-
getDataSourceUser
Deprecated.- Throws:
Exception
-
getDataSourcePassword
Deprecated.- Throws:
Exception
-
getDataSourceJndiNames
Deprecated.- Throws:
Exception
-