S
- FIXME *** Explicit tests of web.xml tx URL rewrites. Can we hit the
transaction manager if all we have is the sparqlEndpointURL?
FIXME *** Can we run the same repository test suite that we use for
embedded tests? (BigdataSparqlTest). This would mean having a test
suite class so we can use it from another maven project.
FIXME *** com.bigdata.rdf.sail.webapp.TestSparqlUpdate runs against
the com.bigdata.rdf.sail.webapp.client.RemoteRepository. It could
run against the BigdataSailRemoteRepository
.
FIXME *** Verify that we are running the full embedded repository
test suite, including the tests for the extended transaction API.public class TestBigdataSailRemoteRepository<S extends IIndexManager> extends AbstractTestNanoSparqlClient<S>
BigdataSailRemoteRepository
and
BigdataSailRemoteRepositoryConnection
.
Note: There are two versions of the test suite. One with isolatable indices enabled and one without. A namespace DOES NOT need to be configured for isolatable indices in order to create and manipulate transactions, but it DOES need to be configured with isolatable indices in order for you to WRITE on the namespace using a transaction.
Modifier and Type | Class and Description |
---|---|
static class |
TestBigdataSailRemoteRepository.ReadWriteTx<S extends IIndexManager>
An *extension* of the test suite that uses a namespace that is configured
to support read/write transactions.
|
TestCase2.MyProperties, TestCase2.RandomType
Modifier and Type | Field and Description |
---|---|
protected BigdataSailRemoteRepositoryConnection |
cxn
|
protected static String |
DEFAULT_PREFIX
The URI for the default prefix (":") in SPARQL QUERY and UPDATE requests.
|
protected BigdataSailRemoteRepository |
repo
The repository under test.
|
m_client, m_fixture, m_mgr, m_repo, m_rootURL, m_serviceURL, namespace, packagePath
_randomType, log
Constructor and Description |
---|
TestBigdataSailRemoteRepository() |
TestBigdataSailRemoteRepository(String name) |
Modifier and Type | Method and Description |
---|---|
protected long |
doDeleteWithAccessPath(org.openrdf.model.URI s,
org.openrdf.model.URI p,
org.openrdf.model.Value o,
org.openrdf.model.URI... c) |
protected org.openrdf.repository.RepositoryResult<org.openrdf.model.Statement> |
doGetWithAccessPath(org.openrdf.model.URI s,
org.openrdf.model.URI p,
org.openrdf.model.Value o,
org.openrdf.model.URI... c) |
protected long |
doInsertByBody(String method,
org.openrdf.rio.RDFFormat rdfFormat,
org.openrdf.model.Graph g,
org.openrdf.model.URI defaultContext)
Reads a resource and sends it using an INSERT with BODY request to be
loaded into the database.
|
protected void |
doInsertWithBodyTest(String method,
int ntriples,
org.openrdf.rio.RDFFormat format)
Test of POST w/ BODY having data to be loaded.
|
protected String |
getNamespaceDeclarations()
A bunch of namespace declarations to be used by the tests.
|
void |
setUp() |
static junit.framework.Test |
suite() |
void |
tearDown() |
void |
test_ASK()
"ASK" query with an empty KB.
|
void |
test_CONTEXTS()
Test the CONTEXTS method.
|
void |
test_DELETE_accessPath_delete_all()
Delete everything matching an access path description.
|
void |
test_DELETE_accessPath_delete_c_nothingMatched()
Delete using an access path with the context position bound.
|
void |
test_DELETE_accessPath_delete_c()
Delete everything in a named graph (context).
|
void |
test_DELETE_accessPath_delete_c1()
Delete everything in a different named graph (context).
|
void |
test_DELETE_accessPath_delete_NothingMatched()
Delete using an access path which does not match anything.
|
void |
test_DELETE_accessPath_delete_o_Literal()
Delete everything with a specific object (a Literal).
|
void |
test_DELETE_accessPath_delete_o_URI()
Delete everything with a specific object (a URI).
|
void |
test_DELETE_accessPath_delete_p_o_Literal()
Delete everything with a specific predicate and object (a Literal).
|
void |
test_DELETE_accessPath_delete_p_o_URI()
Delete everything with a specific predicate and object (a URI).
|
void |
test_DELETE_accessPath_delete_p()
Delete everything with a specific predicate.
|
void |
test_DELETE_accessPath_delete_s()
Delete everything with a specific subject.
|
void |
test_GET_accessPath_delete_all()
Get everything matching an access path description.
|
void |
test_GET_accessPath_delete_c_nothingMatched()
Get using an access path with the context position bound.
|
void |
test_GET_accessPath_delete_c()
Get everything in a named graph (context).
|
void |
test_GET_accessPath_delete_c1()
Get everything in a different named graph (context).
|
void |
test_GET_accessPath_delete_NothingMatched()
Get using an access path which does not match anything.
|
void |
test_GET_accessPath_delete_o_Literal()
Get everything with a specific object (a Literal).
|
void |
test_GET_accessPath_delete_o_URI()
Get everything with a specific object (a URI).
|
void |
test_GET_accessPath_delete_p_o_Literal()
Get everything with a specific predicate and object (a Literal).
|
void |
test_GET_accessPath_delete_p_o_URI()
Get everything with a specific predicate and object (a URI).
|
void |
test_GET_accessPath_delete_p()
Get everything with a specific predicate.
|
void |
test_GET_accessPath_delete_s()
Get everything with a specific subject.
|
void |
test_GET_SELECT_ERROR()
A GET query which should result in an error (the query is not well
formed).
|
void |
test_INSERT_LOAD_FROM_URI()
Test ability to load data from a URI.
|
void |
test_INSERT_NQuads_by_URL()
Test for POST of an NQuads resource by a URL.
|
void |
test_INSERT_triples_with_BODY_and_defaultContext() |
void |
test_INSERT_triples_with_URI_and_defaultContext() |
void |
test_INSERT_veryLargeLiteral()
Test of insert and retrieval of a large literal.
|
void |
test_INSERT_withBody_N3() |
void |
test_INSERT_withBody_NTRIPLES() |
void |
test_INSERT_withBody_RDFXML() |
void |
test_INSERT_withBody_TRIG() |
void |
test_INSERT_withBody_TRIX() |
void |
test_INSERT_withBody_TURTLE() |
void |
test_POST_INSERT_withBody_NQUADS() |
void |
test_SELECT_ALL()
Select everything in the kb using a GET.
|
void |
test_tx_begin_commit()
Basic test creates a read/write connection, issues begin(), and then
issues commit() on the connection.
|
void |
test_tx_begin_rollback()
Basic test creates a read/write connection, issues begin(), and then
issues rollback() on the connection.
|
asGraph, asGraph, assertSameGraph, assertSameGraph, countAll, countMatches, countResults, countResults, countResults, doConstructTest, doDeleteWithBody, doDeleteWithPostTest, doDeleteWithQuery, doDescribeTest, doInsertbyURL, genNTRIPLES, genNTRIPLES2, getExactSize, getMatches, getResponseBody, getTestMode, getVeryLargeLiteral, loadGraphFromResource, newFixture, readFromFile, readGraphFromFile, setupDataOnServer, setupQuadsDataOnServer, writeOnBuffer
getDelegate, getIndexManager, getOurDelegate, getProperties, setDelegate
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
protected BigdataSailRemoteRepository repo
protected BigdataSailRemoteRepositoryConnection cxn
protected static final String DEFAULT_PREFIX
public TestBigdataSailRemoteRepository()
public TestBigdataSailRemoteRepository(String name)
public static junit.framework.Test suite()
public void setUp() throws Exception
setUp
in class AbstractTestNanoSparqlClient<S extends IIndexManager>
Exception
public void tearDown() throws Exception
tearDown
in class AbstractTestNanoSparqlClient<S extends IIndexManager>
Exception
protected String getNamespaceDeclarations()
protected void doInsertWithBodyTest(String method, int ntriples, org.openrdf.rio.RDFFormat format) throws Exception
AbstractTestNanoSparqlClient
doInsertWithBodyTest
in class AbstractTestNanoSparqlClient<S extends IIndexManager>
Exception
protected long doInsertByBody(String method, org.openrdf.rio.RDFFormat rdfFormat, org.openrdf.model.Graph g, org.openrdf.model.URI defaultContext) throws Exception
AbstractTestNanoSparqlClient
doInsertByBody
in class AbstractTestNanoSparqlClient<S extends IIndexManager>
Exception
protected long doDeleteWithAccessPath(org.openrdf.model.URI s, org.openrdf.model.URI p, org.openrdf.model.Value o, org.openrdf.model.URI... c) throws Exception
doDeleteWithAccessPath
in class AbstractTestNanoSparqlClient<S extends IIndexManager>
Exception
protected org.openrdf.repository.RepositoryResult<org.openrdf.model.Statement> doGetWithAccessPath(org.openrdf.model.URI s, org.openrdf.model.URI p, org.openrdf.model.Value o, org.openrdf.model.URI... c) throws Exception
Exception
public void test_SELECT_ALL() throws Exception
Exception
public void test_GET_SELECT_ERROR() throws Exception
Exception
public void test_INSERT_withBody_RDFXML() throws Exception
Exception
public void test_INSERT_withBody_NTRIPLES() throws Exception
Exception
public void test_INSERT_withBody_TURTLE() throws Exception
Exception
public void test_INSERT_withBody_TRIG() throws Exception
Exception
public void test_INSERT_withBody_TRIX() throws Exception
Exception
public void test_POST_INSERT_withBody_NQUADS() throws Exception
Exception
public void test_INSERT_triples_with_BODY_and_defaultContext() throws Exception
Exception
public void test_INSERT_triples_with_URI_and_defaultContext() throws Exception
Exception
public void test_INSERT_NQuads_by_URL() throws Exception
Exception
public void test_INSERT_veryLargeLiteral() throws Exception
Exception
public void test_INSERT_LOAD_FROM_URI() throws Exception
Exception
public void test_CONTEXTS() throws Exception
Exception
public void test_DELETE_accessPath_delete_all() throws Exception
Exception
public void test_DELETE_accessPath_delete_s() throws Exception
Exception
public void test_DELETE_accessPath_delete_p() throws Exception
Exception
public void test_DELETE_accessPath_delete_o_URI() throws Exception
Exception
public void test_DELETE_accessPath_delete_o_Literal() throws Exception
Exception
public void test_DELETE_accessPath_delete_p_o_URI() throws Exception
Exception
public void test_DELETE_accessPath_delete_p_o_Literal() throws Exception
Exception
public void test_DELETE_accessPath_delete_NothingMatched() throws Exception
Exception
public void test_DELETE_accessPath_delete_c() throws Exception
Exception
public void test_DELETE_accessPath_delete_c1() throws Exception
Exception
public void test_DELETE_accessPath_delete_c_nothingMatched() throws Exception
Exception
public void test_GET_accessPath_delete_all() throws Exception
Exception
public void test_GET_accessPath_delete_s() throws Exception
Exception
public void test_GET_accessPath_delete_p() throws Exception
Exception
public void test_GET_accessPath_delete_o_URI() throws Exception
Exception
public void test_GET_accessPath_delete_o_Literal() throws Exception
Exception
public void test_GET_accessPath_delete_p_o_URI() throws Exception
Exception
public void test_GET_accessPath_delete_p_o_Literal() throws Exception
Exception
public void test_GET_accessPath_delete_NothingMatched() throws Exception
Exception
public void test_GET_accessPath_delete_c() throws Exception
Exception
public void test_GET_accessPath_delete_c1() throws Exception
Exception
public void test_GET_accessPath_delete_c_nothingMatched() throws Exception
Exception
public void test_tx_begin_rollback() throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryException
public void test_tx_begin_commit() throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.