public abstract class ProxyBigdataSailTestCase extends AbstractBigdataSailTestCase implements IProxyTest
This class provides proxy delegation logic for abstract methods declared by
AbstractBigdataSailTestCase 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
AbstractBigdataSailTestCase 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.
AbstractBigdataTestCaseTestCase2.MyProperties, TestCase2.RandomType_randomType, log| Constructor and Description |
|---|
ProxyBigdataSailTestCase() |
ProxyBigdataSailTestCase(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertSameIterationAnyOrder(org.openrdf.model.Resource[] expected,
info.aduna.iteration.CloseableIteration<?,? extends Exception> actual)
Verifies that the iterator visits the specified objects in some arbitrary
ordering and that the iterator is exhausted once all expected objects
have been visited.
|
static void |
assertSameIterationAnyOrder(String msg,
org.openrdf.model.Resource[] expected,
info.aduna.iteration.CloseableIteration<?,? extends Exception> actual)
Verifies that the iterator visits the specified objects in some arbitrary
ordering and that the iterator is exhausted once all expected objects
have been visited.
|
protected void |
compare(org.openrdf.query.TupleQueryResult actual,
Collection<org.openrdf.query.BindingSet> expected) |
protected org.openrdf.query.BindingSet |
createBindingSet(org.openrdf.query.Binding... bindings) |
junit.framework.Test |
getDelegate()
Returns the reference to the delegate or
null if
the delegate was not established. |
AbstractBigdataSailTestCase |
getOurDelegate()
Returns the delegate after first making sure that it is non-null and
extends
AbstractBigdataTestCase. |
Properties |
getProperties()
The properties as configured by the delegate.
|
protected BigdataSail |
getSail()
Create a SAIL using the delegate and using the properties as configured
by the delegate.
|
protected BigdataSail |
getSail(Properties properties)
Create a SAIL using the delegate using the specified properties
(typically overriding one or more properties).
|
protected BigdataSail |
reopenSail(BigdataSail sail)
Close and then re-open the SAIL.
|
void |
setDelegate(junit.framework.Test delegate)
Sets the delegate.
|
protected void |
setUp() |
protected void |
tearDown() |
checkIfProxy, setUp, tearDownassertEquals, 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 ProxyBigdataSailTestCase()
public ProxyBigdataSailTestCase(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 AbstractBigdataSailTestCase getOurDelegate()
AbstractBigdataTestCase.protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionprotected void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionpublic Properties getProperties()
getProperties in class AbstractBigdataSailTestCaseprotected BigdataSail getSail()
protected BigdataSail getSail(Properties properties)
getSail in class AbstractBigdataSailTestCaseprotected BigdataSail reopenSail(BigdataSail sail)
reopenSail in class AbstractBigdataSailTestCasepublic static void assertSameIterationAnyOrder(org.openrdf.model.Resource[] expected,
info.aduna.iteration.CloseableIteration<?,? extends Exception> actual)
throws Exception
Exceptionpublic static void assertSameIterationAnyOrder(String msg, org.openrdf.model.Resource[] expected, info.aduna.iteration.CloseableIteration<?,? extends Exception> actual) throws Exception
Exceptionprotected org.openrdf.query.BindingSet createBindingSet(org.openrdf.query.Binding... bindings)
protected void compare(org.openrdf.query.TupleQueryResult actual,
Collection<org.openrdf.query.BindingSet> expected)
throws org.openrdf.query.QueryEvaluationException
org.openrdf.query.QueryEvaluationExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.