public abstract class AbstractIndexManagerTestCase<S extends IIndexManager> extends TestCase2
TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
AbstractIndexManagerTestCase() |
AbstractIndexManagerTestCase(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkIfProxy()
This method is invoked from methods that MUST be proxied to this class.
|
protected abstract S |
getIndexManager() |
Properties |
getProperties()
Reads in the configuration properties for the test from a
variety of resources and returns a properties hierarchy.
|
void |
setUp(ProxyTestCase<S> testCase)
Invoked from
TestCase.setUp() for each test in the suite. |
void |
tearDown() |
void |
tearDown(ProxyTestCase<S> testCase)
Invoked from
TestCase.tearDown() for each test in the suite. |
void |
tearDownAfterSuite() |
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, setUp, toString
public AbstractIndexManagerTestCase()
public AbstractIndexManagerTestCase(String name)
public void setUp(ProxyTestCase<S> testCase) throws Exception
TestCase.setUp()
for each test in the suite.Exception
public void tearDown(ProxyTestCase<S> testCase) throws Exception
TestCase.tearDown()
for each test in the suite.Exception
public void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public Properties getProperties()
TestCase2
Properties
object, then the lower levels of the
hierarchy are recursively searched.The hierarchy is constructed from the following properties files in the following order. The first property file in this list corresponds to the top of the property hierarchy. The last property file in this list corresponds to the bottom of the property hierarchy. The property resources are:
getProperties
in class TestCase2
Properties
object that supplies bindings for
property names according to the described hierarchy among
property resources. The returned Properties
is NOT
cached.
TODO This does not handle the recursive truncation of the
class name to search for "test.properties" yet.protected abstract S getIndexManager()
protected final void checkIfProxy()
GenericProxyTestCase
extends this class, as do the concrete
classes that drive the test suite for specific GOM integration test
configuration. Many methods on this class must be proxied from
GenericProxyTestCase
to the delegate. Invoking this method from
the implementations of those methods in this class provides a means of
catching omissions where the corresponding method is NOT being delegated.
Failure to delegate these methods means that you are not able to share
properties or object manager instances across tests, which means that you
can not do configuration-based testing of integrations and can also wind
up with mutually inconsistent test fixtures between the delegate and each
proxy test.public void tearDownAfterSuite()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.