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 public abstract class H2TestCase extends CayenneTestCase
Deprecated.Provides an in-memory H2 Test Case.- Since:
- 4.3.4
-
-
Constructor Summary
Constructors Constructor Description H2TestCase()Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract String[]getDataSourceJndiNames()Deprecated.protected abstract StringgetDataSourcePassword()Deprecated.protected abstract StringgetDataSourceUrl()Deprecated.protected abstract StringgetDataSourceUser()Deprecated.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 voidloadTestData()Deprecated.protected voidsetUp()Deprecated.This method is called before a test is executed, creating a DataContext and associating it to the current Thread.protected voidsetupDataSource()Deprecated.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, getDataContext
-
Methods 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
-
-
-
-
Method Detail
-
setUp
protected void setUp() throws ExceptionDeprecated.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:
TestCase.setUp()
-
tearDown
protected void tearDown() throws ExceptionDeprecated.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:
TestCase.tearDown()
-
setupDataSource
protected void setupDataSource() throws ExceptionDeprecated.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 ExceptionDeprecated.Create the demonstration database schema using the given Cayenne DataNode and DataMap.- Parameters:
dataNode- the Cayenne DataNodedataMap- the Cayenne DataMap- Throws:
Exception
-
getDataSourceUrl
protected abstract String getDataSourceUrl() throws Exception
Deprecated.- Throws:
Exception
-
getDataSourceUser
protected abstract String getDataSourceUser() throws Exception
Deprecated.- Throws:
Exception
-
getDataSourcePassword
protected abstract String getDataSourcePassword() throws Exception
Deprecated.- Throws:
Exception
-
-