public abstract class AbstractJournalTestCase extends AbstractIndexManagerTestCase<Journal>
Abstract harness for testing under a variety of configurations. In order to
test a specific configuration, create a concrete instance of this class. The
configuration can be described using a mixture of a .properties
file of the same name as the test class and custom code.
When debugging from an IDE, it is very helpful to be able to run a single
test case. You can do this, but you MUST define the property
testClass
as the name test class that has the logic required
to instantiate and configure an appropriate object manager instance for the
test.
TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
AbstractJournalTestCase() |
AbstractJournalTestCase(String name) |
Modifier and Type | Method and Description |
---|---|
Properties |
getProperties()
Returns properties read from a hierarchy of sources.
|
protected Journal |
getStore(Properties properties)
Open/create an
IIndexManager using the given properties. |
protected Journal |
reopenStore(Journal store)
Re-open the same backing store.
|
void |
setUp(ProxyTestCase<Journal> testCase)
Invoked from
TestCase.setUp() for each test in the suite. |
void |
tearDown(ProxyTestCase<Journal> testCase)
Invoked from
TestCase.tearDown() for each test in the suite. |
checkIfProxy, fail, getRandomData, setUp, tearDown
assertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomData
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logProperties
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
public AbstractJournalTestCase()
public AbstractJournalTestCase(String name)
public void setUp(ProxyTestCase<Journal> testCase) throws Exception
TestCase.setUp()
for each test in the suite.setUp
in class AbstractIndexManagerTestCase<Journal>
Exception
public void tearDown(ProxyTestCase<Journal> testCase) throws Exception
TestCase.tearDown()
for each test in the suite.tearDown
in class AbstractIndexManagerTestCase<Journal>
Exception
public Properties getProperties()
Returns properties read from a hierarchy of sources. The underlying properties read from those sources are cached, but a new properties object is returned on each invocation (to prevent side effects by the caller).
In general, a test configuration critically relies on both the properties returned by this method and the appropriate properties must be provided either through the command line or in a properties file.
getProperties
in class AbstractIndexManagerTestCase<Journal>
protected Journal getStore(Properties properties)
AbstractIndexManagerTestCase
IIndexManager
using the given properties.getStore
in class AbstractIndexManagerTestCase<Journal>
protected Journal reopenStore(Journal store)
reopenStore
in class AbstractIndexManagerTestCase<Journal>
store
- the existing store.Throwable
- if the existing store is closed or if the store can not be
re-opened, e.g., from failure to obtain a file lock, etc.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.