public class TestSolutionSetManager extends TestCase2
TestCase2.MyProperties, TestCase2.RandomType
Modifier and Type | Field and Description |
---|---|
protected BlobIV<BigdataLiteral> |
blobIV
|
protected IEvaluationContext |
ctx
Note: Not used yet by the
CacheConnectionImpl . |
protected XSDIntegerIV<BigdataLiteral> |
inlineIV
An inline IV whose
IVCache is set. |
protected IV<?,?> |
inlineIV2
An inline IV whose
IVCache is NOT set. |
protected Journal |
journal |
protected TermId<BigdataValue> |
mockIV1
A "mockIV".
|
protected TermId<BigdataValue> |
mockIV2
A "mockIV".
|
protected TermId<BigdataValue> |
mockIV3
A "mockIV".
|
protected String |
namespace
The namespace for the
BigdataValueFactory . |
protected QueryEngine |
queryEngine |
protected ISolutionSetManager |
solutionSetsManager |
protected TermId<BigdataLiteral> |
termId
|
protected TermId<BigdataLiteral> |
termId2
|
protected BigdataValueFactory |
valueFactory
The value factory for that namespace.
|
_randomType, log
Constructor and Description |
---|
TestSolutionSetManager() |
TestSolutionSetManager(String name) |
Modifier and Type | Method and Description |
---|---|
protected static void |
assertSameSolutionsAnyOrder(IBindingSet[] expected,
ICloseableIterator<IBindingSet[]> itr) |
protected static void |
assertSameSolutionsAnyOrder(String msg,
IBindingSet[] expected,
ICloseableIterator<IBindingSet[]> itr) |
protected static IBindingSet[] |
flatten(Iterator<IBindingSet[]> itr)
Flatten out the iterator into a single chunk.
|
protected void |
setUp() |
protected void |
tearDown() |
void |
test_clearAllSolutionSets()
Unit test for clearing all named solution sets.
|
void |
test_clearSolutionSet()
Unit test for clearing a named solution set.
|
void |
test_putGet()
Unit test for saving an empty named solution set and then reading it
back.
|
void |
test_putGet2()
Unit test for saving a two empty solutions into a named solution set and
then reading it back.
|
void |
test_putGet3()
Unit test for saving some non-empty solutions into a named solution set
and then reading it back.
|
void |
test_putGet4()
Unit test for saving some non-empty solutions in multiple chunks into a
named solution set and then reading it back.
|
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, toString
protected Journal journal
protected QueryEngine queryEngine
protected ISolutionSetManager solutionSetsManager
protected IEvaluationContext ctx
CacheConnectionImpl
.protected String namespace
BigdataValueFactory
.protected BigdataValueFactory valueFactory
protected TermId<BigdataLiteral> termId
protected TermId<BigdataLiteral> termId2
protected BlobIV<BigdataLiteral> blobIV
protected TermId<BigdataValue> mockIV1
protected TermId<BigdataValue> mockIV2
protected TermId<BigdataValue> mockIV3
protected XSDIntegerIV<BigdataLiteral> inlineIV
IVCache
is set.public TestSolutionSetManager()
public TestSolutionSetManager(String name)
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void test_putGet()
public void test_putGet2()
public void test_putGet3()
public void test_putGet4()
public void test_clearSolutionSet()
public void test_clearAllSolutionSets()
protected static IBindingSet[] flatten(Iterator<IBindingSet[]> itr)
itr
- An iterator visiting solution chunks.protected static void assertSameSolutionsAnyOrder(IBindingSet[] expected, ICloseableIterator<IBindingSet[]> itr)
protected static void assertSameSolutionsAnyOrder(String msg, IBindingSet[] expected, ICloseableIterator<IBindingSet[]> itr)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.