Class AbstractLuceneSailTest
java.lang.Object
org.eclipse.testsuite.rdf4j.sail.lucene.AbstractLuceneSailTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IRIstatic final IRIstatic final IRIstatic final IRIstatic final IRIstatic final IRIstatic final Stringprotected Repositoryprotected LuceneSailstatic final IRIstatic final IRIstatic final IRIstatic final IRIstatic final IRIprotected static final ValueFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertNoQueryResult(String literal) protected voidassertQueryResult(String literal, IRI predicate, Resource resultUri) protected abstract voidconfigure(LuceneSail sail) voidsetUp()voidtearDown()voidvoidvoidvoidvoidtestDefaultNumDocsResult(int numDoc) voidvoidvoidtestMaxNumDocsResult(int numDoc) voidvoidvoidwe experienced problems with the NULL context and lucenesail in August 2008voidtestNumDocsResult(int numDoc) voidtestNumDocsResultNegative(int numDocs) voidvoidvoidvoidvoidvoidTest if the snippets do not accidentially come from the "text" field while we actually expect them to come from the predicate field.voidvoidvoid
-
Field Details
-
vf
-
QUERY_STRING
-
SUBJECT_1
-
SUBJECT_2
-
SUBJECT_3
-
SUBJECT_4
-
SUBJECT_5
-
CONTEXT_1
-
CONTEXT_2
-
CONTEXT_3
-
PREDICATE_1
-
PREDICATE_2
-
PREDICATE_3
-
sail
-
repository
-
-
Constructor Details
-
AbstractLuceneSailTest
public AbstractLuceneSailTest()
-
-
Method Details
-
configure
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
RepositoryException
-
testTriplesStored
@Test public void testTriplesStored() -
testRegularQuery
@Test public void testRegularQuery() throws RepositoryException, MalformedQueryException, QueryEvaluationException -
testComplexQueryOne
@Test public void testComplexQueryOne() throws MalformedQueryException, RepositoryException, QueryEvaluationException -
testComplexQueryTwo
@Test public void testComplexQueryTwo() throws MalformedQueryException, RepositoryException, QueryEvaluationException -
testMultipleLuceneQueries
@Test public void testMultipleLuceneQueries() throws MalformedQueryException, RepositoryException, QueryEvaluationException -
testPredicateLuceneQueries
@Test public void testPredicateLuceneQueries() throws MalformedQueryException, RepositoryException, QueryEvaluationException -
testSnippetQueries
@Test public void testSnippetQueries() throws MalformedQueryException, RepositoryException, QueryEvaluationException -
testSnippetLimitedToPredicate
@Test public void testSnippetLimitedToPredicate() throws MalformedQueryException, RepositoryException, QueryEvaluationExceptionTest if the snippets do not accidentially come from the "text" field while we actually expect them to come from the predicate field. -
testGraphQuery
@Test public void testGraphQuery() throws QueryEvaluationException, MalformedQueryException, RepositoryException -
testQueryWithSpecifiedSubject
@Test public void testQueryWithSpecifiedSubject() throws RepositoryException, MalformedQueryException, QueryEvaluationException -
testUnionQuery
@Test public void testUnionQuery() throws RepositoryException, MalformedQueryException, QueryEvaluationException -
testContextHandling
@Test public void testContextHandling() -
testConcurrentReadingAndWriting
@Test public void testConcurrentReadingAndWriting() -
testNullContextHandling
@Test public void testNullContextHandling()we experienced problems with the NULL context and lucenesail in August 2008 -
testFuzzyQuery
@Test public void testFuzzyQuery() throws MalformedQueryException, RepositoryException, QueryEvaluationException -
testReindexing
@Test public void testReindexing() -
testPropertyVar
@Test public void testPropertyVar() throws MalformedQueryException, RepositoryException, QueryEvaluationException -
testMultithreadedAdd
- Throws:
InterruptedException
-
testDefaultNumDocsResult
@ParameterizedTest @ValueSource(ints={1,2,3}) public void testDefaultNumDocsResult(int numDoc) -
testMaxNumDocsResult
@ParameterizedTest @ValueSource(ints={1,2,3}) public void testMaxNumDocsResult(int numDoc) -
testNumDocsResult
@ParameterizedTest @ValueSource(ints={1,2,3}) public void testNumDocsResult(int numDoc) -
testNumDocsResultNegative
@ParameterizedTest @ValueSource(ints={-1,-2,-3}) public void testNumDocsResultNegative(int numDocs) -
assertQueryResult
-
assertNoQueryResult
-