public abstract class AbstractBigdataSailTestCase extends TestCase2
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 |
---|
AbstractBigdataSailTestCase() |
AbstractBigdataSailTestCase(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkIfProxy()
This method is invoked from methods that MUST be proxied to this class.
|
Properties |
getProperties()
Returns properties read from a hierarchy of sources.
|
protected abstract BigdataSail |
getSail(Properties properties) |
protected abstract BigdataSail |
reopenSail(BigdataSail sail) |
protected void |
setUp(ProxyBigdataSailTestCase testCase)
Invoked from
TestCase.setUp() for each test in the suite. |
protected void |
tearDown(ProxyBigdataSailTestCase testCase)
Invoked from
TestCase.tearDown() for each test in the suite. |
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, tearDown, toString
public AbstractBigdataSailTestCase()
public AbstractBigdataSailTestCase(String name)
name
- protected void setUp(ProxyBigdataSailTestCase testCase) throws Exception
TestCase.setUp()
for each test in the suite.Exception
protected void tearDown(ProxyBigdataSailTestCase testCase) throws Exception
TestCase.tearDown()
for each test in the suite.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 TestCase2
protected void checkIfProxy()
GenericProxyTestCase
extends this class, as do the concrete
classes that drive the test suite for specific GOM integration test
configuration. Many method 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.protected abstract BigdataSail getSail(Properties properties)
protected abstract BigdataSail reopenSail(BigdataSail sail)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.