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.
AbstractJournalTestCaseTestCase2.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. | 
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. 
 | 
S | 
getStore()
Open/create an  
IIndexManager using the properties reported by
 getProperties(). | 
S | 
getStore(Properties properties)
Open/create an  
IIndexManager using the given properties. | 
S | 
reopenStore(S store)
Close the  
IIndexManager and re-open an IIndexManager
 backed by the same persistent storage. | 
void | 
setDelegate(junit.framework.Test delegate)
Sets the delegate. 
 | 
void | 
setUp()  | 
void | 
tearDown()  | 
checkIfProxy, fail, getRandomData, setUp, tearDownassertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomDataassertEquals, 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, logPropertiesassertEquals, 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, toStringpublic ProxyTestCase()
public ProxyTestCase(String name)
public void setDelegate(junit.framework.Test delegate)
IProxyTestProxyTestSuite uses this method to
 set the delegate on each test class instance that it creates
 that implements the IProxyTest interface.setDelegate in interface IProxyTestpublic junit.framework.Test getDelegate()
                                 throws IllegalStateException
IProxyTestnull if
 the delegate was not established.getDelegate in interface IProxyTestIllegalStateExceptionpublic AbstractIndexManagerTestCase<S> getOurDelegate()
AbstractJournalTestCase.public void setUp()
           throws Exception
setUp in class AbstractIndexManagerTestCase<S extends IIndexManager>Exceptionpublic void tearDown()
              throws Exception
tearDown in class AbstractIndexManagerTestCase<S extends IIndexManager>Exceptionpublic Properties getProperties()
TestCase2Properties 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 getStore()
IIndexManager using the properties reported by
 getProperties().public S getStore(Properties properties)
IIndexManager using the given properties.
 
 Open/create an IIndexManager using the given properties.
getStore in class AbstractIndexManagerTestCase<S extends IIndexManager>public S reopenStore(S store)
IIndexManager and re-open an IIndexManager
 backed by the same persistent storage.
 
 Close and then re-open an IIndexManager backed by the same
 persistent data.
reopenStore in class AbstractIndexManagerTestCase<S extends IIndexManager>store - the existing store.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.