public class TestBootstrapBigdataSail extends TestCase2
BigdataSail
.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestBootstrapBigdataSail() |
TestBootstrapBigdataSail(String arg0) |
Modifier and Type | Method and Description |
---|---|
void |
test_ctor_1()
Test create and shutdown of the default store.
|
void |
test_ctor_2()
Test create and shutdown of a named store.
|
void |
test_getConnection()
Test creates a database, obtains a writable connection on the database,
and then closes the connection and shutdown the database.
|
void |
test_getConnectionAllowedExactlyOnce1_oneThread()
Unit test verifies that a thread may not obtain more than one instance of
the unisolated connection at a time from the
BigdataSail via a
reentrant invocation. |
void |
test_getConnectionAllowedExactlyOnce1_twoThreads()
Unit test verifies that a thread may not obtain more than one instance of
the unisolated connection at a time from the
BigdataSail using
two threads. |
void |
test_getConnectionAllowedExactlyOnce2()
Unit test verifies exactly one unisolated connection for two different
BigdataSail instances for the same AbstractTripleStore on
the same Journal . |
void |
test_getConnectionAllowedExactlyOnce3()
Unit test verifying that exactly one unisolated connection is allowed at
a time for two sails wrapping different
AbstractTripleStore
instances. |
void |
test_isolationOfUnisolatedConnection()
Test creates a database, obtains a writable connection, writes some data
on the store, verifies that the data can be read back from within the
connection but that it is not visible in a read-committed view, commits
the write set, and verifies that the data is now visible in a
read-committed view.
|
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, getProperties, 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 TestBootstrapBigdataSail()
public TestBootstrapBigdataSail(String arg0)
arg0
- public void test_ctor_1() throws org.openrdf.sail.SailException, IOException
org.openrdf.sail.SailException
IOException
public void test_ctor_2() throws org.openrdf.sail.SailException
org.openrdf.sail.SailException
public void test_getConnection() throws org.openrdf.sail.SailException
org.openrdf.sail.SailException
public void test_getConnectionAllowedExactlyOnce1_oneThread() throws org.openrdf.sail.SailException, InterruptedException, ExecutionException
BigdataSail
via a
reentrant invocation. The reentrant request should immediately throw an
exception to prevent an unbreakable deadlock (a thread can not wait on
itself).org.openrdf.sail.SailException
InterruptedException
ExecutionException
public void test_getConnectionAllowedExactlyOnce1_twoThreads() throws org.openrdf.sail.SailException, InterruptedException, ExecutionException, TimeoutException
BigdataSail
using
two threads. The second thread should block until the first thread
releases the connection, at which point the second thread should obtain
the connection.org.openrdf.sail.SailException
InterruptedException
ExecutionException
TimeoutException
public void test_getConnectionAllowedExactlyOnce2() throws org.openrdf.sail.SailException, InterruptedException, ExecutionException
BigdataSail
instances for the same AbstractTripleStore
on
the same Journal
.org.openrdf.sail.SailException
InterruptedException
ExecutionException
public void test_getConnectionAllowedExactlyOnce3() throws org.openrdf.sail.SailException, InterruptedException, ExecutionException
AbstractTripleStore
instances. (This guarantee is needed to preserve ACID semantics for the
unisolated connection when there is more than one
AbstractTripleStore
on the same Journal
. However,
scale-out should not enforce this constraint since it is shard-wise ACID
for unisolated operations.)org.openrdf.sail.SailException
InterruptedException
ExecutionException
public void test_isolationOfUnisolatedConnection() throws org.openrdf.sail.SailException, InterruptedException
org.openrdf.sail.SailException
InterruptedException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.