public abstract class ProxyTestCase<S extends IIndexManager> extends AbstractIndexManagerTestCase<S> implements IProxyTest
This class provides proxy delegation logic for abstract methods declared by
AbstractJournalTestCase
and is used to extend the set of tests that will be
applied to all implementations of the generic object model Java API. If you
want to test a new implementation, you MUST extend the
AbstractJournalTestCase
instead and implement its abstract methods for your
implementation. This class provides an implementation neutral way to add new
tests, not a means for testing specific generic object model Java API
implementations.
In order to add new tests for the generic object model Java APIs, you extend this class and write test methods.
AbstractJournalTestCase
TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
ProxyTestCase() |
ProxyTestCase(String name) |
Modifier and Type | Method and Description |
---|---|
junit.framework.Test |
getDelegate()
Returns the reference to the delegate or
null if
the delegate was not established. |
S |
getIndexManager() |
AbstractIndexManagerTestCase<S> |
getOurDelegate()
Returns the delegate after first making sure that it is non-null and
extends
AbstractJournalTestCase . |
Properties |
getProperties()
Reads in the configuration properties for the test from a
variety of resources and returns a properties hierarchy.
|
void |
setDelegate(junit.framework.Test delegate)
Sets the delegate.
|
void |
setUp() |
void |
tearDown() |
checkIfProxy, setUp, tearDown, 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, toString
public ProxyTestCase()
public ProxyTestCase(String name)
public void setDelegate(junit.framework.Test delegate)
IProxyTest
ProxyTestSuite
uses this method to
set the delegate on each test class instance that it creates
that implements the IProxyTest
interface.setDelegate
in interface IProxyTest
public junit.framework.Test getDelegate() throws IllegalStateException
IProxyTest
null
if
the delegate was not established.getDelegate
in interface IProxyTest
IllegalStateException
public AbstractIndexManagerTestCase<S> getOurDelegate()
AbstractJournalTestCase
.public void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void tearDown() throws Exception
tearDown
in class AbstractIndexManagerTestCase<S extends IIndexManager>
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 AbstractIndexManagerTestCase<S extends IIndexManager>
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.public S getIndexManager()
getIndexManager
in class AbstractIndexManagerTestCase<S extends IIndexManager>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.