Skip to content

Commit 828368a

Browse files
dbulahovstbischof
authored andcommitted
fix tests after creating olap repository
Signed-off-by: dbulahov <[email protected]>
1 parent 69d55f1 commit 828368a

File tree

12 files changed

+28
-28
lines changed

12 files changed

+28
-28
lines changed

mondrian/src/test/java/mondrian/rolap/agg/AggregationOnDistinctCountMeasuresTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ void testAggregationOverLargeListGeneratesError(Context<?> context) {
559559
+ "{[Measures].[Customer Count]}\n"
560560
+ "Axis #2:\n"
561561
+ "{[Product].[Product].[X]}\n"
562-
+ "Row #0: #ERR: mondrian.olap.fun.MondrianEvaluationException: "
562+
+ "Row #0: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: "
563563
+ "Aggregation is not supported over a list with more than 7 predicates (see property MaxConstraints)\n");
564564

565565
// aggregation over a non-distinct-count measure is OK

mondrian/src/test/java/mondrian/test/BasicQueryTest.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3372,18 +3372,18 @@ public void _testDc4dtp2(Context<?> context) {
33723372
+ "Row #3: 2,015.528\n"
33733373
+ "Row #3: 1,641.615\n"
33743374
+ "Row #3: 1,584.334\n"
3375-
+ "Row #4: #ERR: mondrian.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q1].[1]'\n"
3376-
+ "Row #4: #ERR: mondrian.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q1].[2]'\n"
3377-
+ "Row #4: #ERR: mondrian.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q1].[3]'\n"
3378-
+ "Row #4: #ERR: mondrian.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q2].[4]'\n"
3379-
+ "Row #4: #ERR: mondrian.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q2].[5]'\n"
3380-
+ "Row #4: #ERR: mondrian.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q2].[6]'\n"
3381-
+ "Row #4: #ERR: mondrian.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q3].[7]'\n"
3382-
+ "Row #4: #ERR: mondrian.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q3].[8]'\n"
3383-
+ "Row #4: #ERR: mondrian.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q3].[9]'\n"
3384-
+ "Row #4: #ERR: mondrian.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q4].[10]'\n"
3385-
+ "Row #4: #ERR: mondrian.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q4].[11]'\n"
3386-
+ "Row #4: #ERR: mondrian.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q4].[12]'\n");
3375+
+ "Row #4: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q1].[1]'\n"
3376+
+ "Row #4: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q1].[2]'\n"
3377+
+ "Row #4: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q1].[3]'\n"
3378+
+ "Row #4: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q2].[4]'\n"
3379+
+ "Row #4: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q2].[5]'\n"
3380+
+ "Row #4: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q2].[6]'\n"
3381+
+ "Row #4: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q3].[7]'\n"
3382+
+ "Row #4: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q3].[8]'\n"
3383+
+ "Row #4: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q3].[9]'\n"
3384+
+ "Row #4: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q4].[10]'\n"
3385+
+ "Row #4: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q4].[11]'\n"
3386+
+ "Row #4: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Property 'Dynamic Forecast Multiplier' is not valid for member '[Time].[Time].[1997].[Q4].[12]'\n");
33873387
}
33883388

33893389
@ParameterizedTest

mondrian/src/test/java/mondrian/test/ParentChildHierarchyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ void testGenuineCycle(Context<?> context) {
879879
//
880880
// So encapsulate the error string as a pattern.
881881
final String expectedPattern =
882-
"(?s).*Row #0: #ERR: mondrian.olap.fun.MondrianEvaluationException.*: Infinite loop while evaluating calculated member \\'\\[Measures\\].\\[Foo\\]\\'; context stack is.*";
882+
"(?s).*Row #0: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException.*: Infinite loop while evaluating calculated member \\'\\[Measures\\].\\[Foo\\]\\'; context stack is.*";
883883
if (!resultString.matches(expectedPattern)) {
884884
System.out.println(resultString);
885885
assertEquals(expectedPattern, resultString);

mondrian/src/test/java/mondrian/test/SolveOrderScopeIsolationTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -551,10 +551,10 @@ void testAggregateMemberEvalAfterOtherMembersAbsolute(Context<?> context) {
551551
+ "{[Time].[Time].[Total1]}\n"
552552
+ "{[Time].[Time].[1997].[Q1]}\n"
553553
+ "{[Time].[Time].[1997].[Q2]}\n"
554-
+ "Row #0: #ERR: mondrian.olap.fun.MondrianEvaluationException: Could not find an aggregator in the current evaluation context\n"
554+
+ "Row #0: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Could not find an aggregator in the current evaluation context\n"
555555
+ "Row #0: 128,901\n"
556556
+ "Row #0: 41,956\n"
557-
+ "Row #1: #ERR: mondrian.olap.fun.MondrianEvaluationException: Could not find an aggregator in the current evaluation context\n"
557+
+ "Row #1: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Could not find an aggregator in the current evaluation context\n"
558558
+ "Row #1: 128,901\n"
559559
+ "Row #1: 41,956\n"
560560
+ "Row #2: 3.07\n"
@@ -647,10 +647,10 @@ void testConditionalAggregateMemberEvalAfterOtherMembersAbsolute(Context<?> cont
647647
+ "{[Time].[Time].[Total1]}\n"
648648
+ "{[Time].[Time].[1997].[Q1]}\n"
649649
+ "{[Time].[Time].[1997].[Q2]}\n"
650-
+ "Row #0: #ERR: mondrian.olap.fun.MondrianEvaluationException: Could not find an aggregator in the current evaluation context\n"
650+
+ "Row #0: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Could not find an aggregator in the current evaluation context\n"
651651
+ "Row #0: 128,901\n"
652652
+ "Row #0: 41,956\n"
653-
+ "Row #1: #ERR: mondrian.olap.fun.MondrianEvaluationException: Could not find an aggregator in the current evaluation context\n"
653+
+ "Row #1: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Could not find an aggregator in the current evaluation context\n"
654654
+ "Row #1: 128,901\n"
655655
+ "Row #1: 41,956\n"
656656
+ "Row #2: 3\n"
@@ -742,7 +742,7 @@ void testStrToMemberReturningAggEvalAfterOtherMembersAbsolute(Context<?> context
742742
+ "{[Time].[Time].[Total]}\n"
743743
+ "{[Time].[Time].[1997].[Q1]}\n"
744744
+ "{[Time].[Time].[1997].[Q2]}\n"
745-
+ "Row #0: #ERR: mondrian.olap.fun.MondrianEvaluationException: Could not find an aggregator in the current evaluation context\n"
745+
+ "Row #0: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: Could not find an aggregator in the current evaluation context\n"
746746
+ "Row #0: 128,901\n"
747747
+ "Row #0: 41,956\n"
748748
+ "Row #1: 3.07\n"

mondrian/src/test/java/mondrian/test/TestCalculatedMembers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@ void testBugMondrian852(Context<?> context) {
17021702
+ "{}\n"
17031703
+ "Axis #1:\n"
17041704
+ "{[Measures].[Foo]}\n"
1705-
+ "Row #0: #ERR: mondrian.olap.fun.MondrianEvaluationException: wrtong typed, was: 123.0\n");
1705+
+ "Row #0: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: wrtong typed, was: 123.0\n");
17061706

17071707
// unrelated to Mondrian852 we were occasionally seeing differences
17081708
// in number of digits of the casted value based on whether the
@@ -1737,7 +1737,7 @@ void testBugMondrian852(Context<?> context) {
17371737
+ "{[Measures].[Unit Sales]}\n"
17381738
+ "{[Measures].[Tom1]}\n"
17391739
+ "Row #0: 21628.0, 20957.0, 23706.0, 20179.0\n"
1740-
+ "Row #1: #ERR: mondrian.olap.fun.MondrianEvaluationException: wrtong typed, was: 45539.69, 44058.79, 50029.87, 42878.25\n");
1740+
+ "Row #1: #ERR: org.eclipse.daanse.olap.fun.MondrianEvaluationException: wrtong typed, was: 45539.69, 44058.79, 50029.87, 42878.25\n");
17411741

17421742
// Solve orders to achieve what Tom intended.
17431743
assertQueryReturns(context.getConnectionWithDefaultRole(),

mondrian/src/test/java/org/eclipse/daanse/olap/function/def/crossjoin/CrossJoinFunDefTest.java renamed to mondrian/src/test/java/org/eclipse/daanse/olap/function/def/crossjoinx/CrossJoinFunDefTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* SmartCity Jena - initial
1212
* Stefan Bischof (bipolis.org) - initial
1313
*/
14-
package org.eclipse.daanse.olap.function.def.crossjoin;
14+
package org.eclipse.daanse.olap.function.def.crossjoinx;
1515

1616
import static mondrian.olap.fun.FunctionTest.assertExprReturns;
1717
import static org.opencube.junit5.TestUtil.assertAxisReturns;

mondrian/src/test/java/org/eclipse/daanse/olap/function/def/nonemptycrossjoin/NonEmptyCrossJoinFunDefTest.java renamed to mondrian/src/test/java/org/eclipse/daanse/olap/function/def/nonemptycrossjoinx/NonEmptyCrossJoinFunDefTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* SmartCity Jena - initial
1212
* Stefan Bischof (bipolis.org) - initial
1313
*/
14-
package org.eclipse.daanse.olap.function.def.nonemptycrossjoin;
14+
package org.eclipse.daanse.olap.function.def.nonemptycrossjoinx;
1515

1616
import static mondrian.olap.fun.FunctionTest.allHiersExcept;
1717
import static org.opencube.junit5.TestUtil.assertAxisReturns;

mondrian/src/test/java/org/eclipse/daanse/olap/function/def/operators/or/OrOperatorDefTest.java renamed to mondrian/src/test/java/org/eclipse/daanse/olap/function/def/operators/orx/OrOperatorDefTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* SmartCity Jena - initial
1212
* Stefan Bischof (bipolis.org) - initial
1313
*/
14-
package org.eclipse.daanse.olap.function.def.operators.or;
14+
package org.eclipse.daanse.olap.function.def.operators.orx;
1515

1616
import static mondrian.enums.DatabaseProduct.getDatabaseProduct;
1717
import static org.opencube.junit5.TestUtil.assertBooleanExprReturns;

mondrian/src/test/java/org/eclipse/daanse/olap/function/def/operators/or/OrStringOperatorDefTest.java renamed to mondrian/src/test/java/org/eclipse/daanse/olap/function/def/operators/orx/OrStringOperatorDefTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* SmartCity Jena - initial
1212
* Stefan Bischof (bipolis.org) - initial
1313
*/
14-
package org.eclipse.daanse.olap.function.def.operators.or;
14+
package org.eclipse.daanse.olap.function.def.operators.orx;
1515

1616
import static mondrian.olap.fun.FunctionTest.assertExprReturns;
1717

mondrian/src/test/java/org/eclipse/daanse/olap/function/def/set/hierarchy/AllMembersFunDefTest.java renamed to mondrian/src/test/java/org/eclipse/daanse/olap/function/def/set/hierarchyx/AllMembersFunDefTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* SmartCity Jena - initial
1212
* Stefan Bischof (bipolis.org) - initial
1313
*/
14-
package org.eclipse.daanse.olap.function.def.set.hierarchy;
14+
package org.eclipse.daanse.olap.function.def.set.hierarchyx;
1515

1616
import static mondrian.enums.DatabaseProduct.getDatabaseProduct;
1717
import static org.opencube.junit5.TestUtil.assertAxisReturns;

0 commit comments

Comments
 (0)