public abstract class AbstractSolutionSetStatsTestCase extends TestCase2
ISolutionSetStats.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractSolutionSetStatsTestCase.MySolutionStats
Helper class for tests.
|
TestCase2.MyProperties, TestCase2.RandomType| Modifier and Type | Field and Description |
|---|---|
protected static Map<IVariable,IConstant> |
emptyMap
Typed empty map.
|
protected static Set<IVariable> |
emptySet
Typed empty set.
|
protected BigdataValueFactory |
f |
protected String |
namespace |
_randomType, log| Constructor and Description |
|---|
AbstractSolutionSetStatsTestCase() |
AbstractSolutionSetStatsTestCase(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T[] |
asArray(T... vals) |
protected <T> IConstant<T> |
asConst(T val) |
protected Map<IVariable,IConstant> |
asMap(IVariable[] vars,
IConstant[] vals) |
protected static void |
assertSameStats(ISolutionSetStats expected,
ISolutionSetStats actual)
Compare two
ISolutionSetStats. |
protected Set<IVariable> |
asSet(IVariable... vars)
Turn an array of variables into a
Set of variables. |
protected abstract ISolutionSetStats |
newFixture(IBindingSet[] bindingSets)
Implement this method to test a specific
ISolutionSetStats class. |
protected void |
setUp() |
protected void |
tearDown() |
void |
test_002()
Unit test with an empty solution set.
|
void |
test_003()
Unit test with a single solution having a single bound variable where the
bound variable does NOT have its
IVCache association set. |
void |
test_003a()
Unit test with a single solution having a single bound variable
and where the bound variable has its
IVCache association
set. |
void |
test_004()
Unit test with a single solution having a two bound variables.
|
void |
test_005()
Unit test with two solutions having two variables which are bound in both
solutions and where the
IVCache is set for all variables in all
solutions. |
void |
test_005a()
Unit test with two solutions having two variables which are bound in both
solutions, but in this case the
IVCache is not always set for all
variables. |
void |
test_006()
Unit test with two solutions having two variables which are bound in
every solution plus one variable which is bound in just one of the
solutions.
|
void |
test_006a()
Unit test with two solutions having two variables which are bound in
every solution plus one variable which is bound in just one of the
solutions.
|
void |
test_007()
Unit test with two solutions having two variables which are bound in
every solution plus one variable which is bound in just one of the
solutions (this is the same as the previous test except that it presents
the solutions in a different order to test the logic which detects
variables which are not always bound).
|
void |
test_007a()
Unit test with two solutions having two variables which are bound in
every solution plus one variable which is bound in just one of the
solutions (this is the same as the previous test except that it presents
the solutions in a different order to test the logic which detects
variables which are not always bound and the variable which only
appears in one solution is not materialized in that solution).
|
void |
test_008()
Unit test with three solutions having one solution in which nothing is
bound.
|
void |
test_009()
Unit test with three solutions having two variables which are bound in
every solution to the same value plus one variable which is bound to
a different value in every solution.
|
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, logPropertiesassertEquals, 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, toStringprotected String namespace
protected BigdataValueFactory f
public AbstractSolutionSetStatsTestCase()
public AbstractSolutionSetStatsTestCase(String name)
name - protected abstract ISolutionSetStats newFixture(IBindingSet[] bindingSets)
ISolutionSetStats class.bindingSets - The solutions to be analyzer.protected <T> IConstant<T> asConst(T val)
protected Set<IVariable> asSet(IVariable... vars)
Set of variables.vars - The array.protected <T> T[] asArray(T... vals)
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionprotected void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionpublic void test_002()
public void test_003()
IVCache association set.public void test_003a()
IVCache association
set.public void test_004()
IVCache set and the other does not.public void test_005()
IVCache is set for all variables in all
solutions.public void test_005a()
IVCache is not always set for all
variables.public void test_006()
IVCache association is set for all bound
variables in each solution.public void test_006a()
IVCache association is not set for all bound
variables in each solution.public void test_007()
public void test_007a()
public void test_008()
public void test_009()
protected static void assertSameStats(ISolutionSetStats expected, ISolutionSetStats actual)
ISolutionSetStats.expected - actual - Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.