public abstract class AbstractAggregationTestCase extends TestCase2
GroupByOp
operator implementations.Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractAggregationTestCase.MockVariableFactory
Provides sequential, predictable, and easily read variable names.
|
TestCase2.MyProperties, TestCase2.RandomType
Modifier and Type | Field and Description |
---|---|
protected IQueryContext |
queryContext
The
IQueryContext - operators which require access to the
IMemoryManager MUST explicitly setup and tear down this field. |
_randomType, log
Constructor and Description |
---|
AbstractAggregationTestCase() |
AbstractAggregationTestCase(String name) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
isPipelinedAggregationOp()
Return
true iff the fixture will be a pipelined aggregation
operator as defined by GroupByOp.isPipelinedAggregationOp() . |
protected abstract GroupByOp |
newFixture(IValueExpression<?>[] select,
IValueExpression<?>[] groupBy,
IConstraint[] having)
Factory for
GroupByOp to be tested. |
protected void |
setUp() |
protected void |
tearDown() |
void |
test_aggregation_aggregate_no_groups()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_count_distinct_star_no_groups()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_count_star_no_groups()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_distinct_aggregate_no_groups()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_groupBy_by_error_values1()
Based on
https://www.w3.org/2009/sparql/docs/tests/data-sparql11/grouping/group03.rq
|
void |
test_aggregation_groupBy_by_error_values2()
Based on
https://www.w3.org/2009/sparql/docs/tests/data-sparql11/grouping/group05.rq
|
void |
test_aggregation_groupBy_with_aggregate_and_having_with_errors()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_groupBy_with_aggregate_and_having()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_groupBy_with_aggregate_and_projected_constant()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_groupBy_with_aggregate_no_having_with_errors()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_groupBy_with_aggregate()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_select_projects_group_by_value_expression_as_variable()
Unit test of SELECT expression which projects a variable projected by a
GROUP_BY expression.
|
void |
test_aggregation_select_projects_group_by_variable()
Unit test of SELECT expression which projects a variable projected by a
GROUP_BY expression.
|
void |
test_aggregation_with_groupBy_with_nestedAggregate()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_withGroupBy_withSelectDependency()
A test in which there is a select dependency without there also being
nested aggregates.
|
void |
test_aggregation_without_groupBy_with_aggregate_and_having_no_solutions()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_without_groupBy_with_aggregate_and_having()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_without_groupBy_with_nestedAggregate()
Based on an example in the SPARQL 1.1 Working Draft.
|
void |
test_aggregation_withoutGroupBy_withSelectDependency()
A test in which there is a select dependency without there also being
nested aggregates.
|
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 IQueryContext queryContext
IQueryContext
- operators which require access to the
IMemoryManager
MUST explicitly setup and tear down this field.public AbstractAggregationTestCase()
public AbstractAggregationTestCase(String name)
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
protected abstract GroupByOp newFixture(IValueExpression<?>[] select, IValueExpression<?>[] groupBy, IConstraint[] having)
GroupByOp
to be tested.select
- The SELECT clause.groupBy
- The optional GROUP BY clause.having
- The optional HAVING clause.GroupByOp
to be tested.protected abstract boolean isPipelinedAggregationOp()
true
iff the fixture will be a pipelined aggregation
operator as defined by GroupByOp.isPipelinedAggregationOp()
. This
is used to conditionally modify the behavior of certain tests to verify
correct rejection rather of aggregation requests which can not be handled
by a pipelined aggregation operator.public void test_aggregation_select_projects_group_by_variable()
SELECT ?org GROUP BY ?org
public void test_aggregation_select_projects_group_by_value_expression_as_variable()
SELECT ?org as ?newVar GROUP BY ?org
public void test_aggregation_groupBy_with_aggregate()
public void test_aggregation_groupBy_with_aggregate_and_projected_constant()
public void test_aggregation_groupBy_with_aggregate_and_having()
public void test_aggregation_groupBy_with_aggregate_and_having_with_errors()
public void test_aggregation_groupBy_with_aggregate_no_having_with_errors()
public void test_aggregation_without_groupBy_with_aggregate_and_having()
public void test_aggregation_without_groupBy_with_aggregate_and_having_no_solutions()
public void test_aggregation_aggregate_no_groups()
public void test_aggregation_distinct_aggregate_no_groups()
public void test_aggregation_count_star_no_groups()
public void test_aggregation_count_distinct_star_no_groups()
public void test_aggregation_without_groupBy_with_nestedAggregate()
public void test_aggregation_with_groupBy_with_nestedAggregate()
public void test_aggregation_withoutGroupBy_withSelectDependency()
Based on an example in the SPARQL 1.1 Working Draft.
public void test_aggregation_withGroupBy_withSelectDependency()
Based on an example in the SPARQL 1.1 Working Draft.
public void test_aggregation_groupBy_by_error_values1()
public void test_aggregation_groupBy_by_error_values2()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.