Skip to content

Commit 857106a

Browse files
dbulahovstbischof
authored andcommitted
remove mondrian from code
Signed-off-by: dbulahov <bulahovdenis@gmail.com>
1 parent 4964b0f commit 857106a

21 files changed

+42
-44
lines changed

mondrian/src/test/java/mondrian/olap/fun/FunctionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ void testCast(Context<?> context) {
10991099

11001100
// This case demonstrates the relative precedence of 'AS' in 'CAST'
11011101
// and 'AS' for creating inline named sets. See also bug MONDRIAN-648.
1102-
// discard( Bug.BugMondrian648Fixed );
1102+
// discard( Bug.Bug648Fixed );
11031103
assertExprReturns(context.getConnectionWithDefaultRole(),
11041104
"'xxx' || Cast(1 = 1 AND 1 = 2 AS String)",
11051105
"xxxfalse" );

mondrian/src/test/java/mondrian/rolap/BatchTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ protected void assertRequestSql(
340340
new ExecutionImpl(
341341
((Connection) connection).getInternalStatement(),
342342
Optional.of(Duration.ofMillis(1000)));
343-
AbstractBasicContext<?> abc = (AbstractBasicContext) execution.getMondrianStatement()
344-
.getMondrianConnection()
343+
AbstractBasicContext<?> abc = (AbstractBasicContext) execution.getDaanseStatement()
344+
.getDaanseConnection()
345345
.getContext();
346346
final AggregationManager aggMgr =
347347
(AggregationManager)abc.getAggregationManager();

mondrian/src/test/java/mondrian/rolap/FastBatchingCellReaderTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private void prepareContext(Context<?> context) {
135135
connection.getCacheControl( null ).flushSchemaCache();
136136
final Statement statement = ((Connection) connection).getInternalStatement();
137137
e = new ExecutionImpl( statement, Optional.empty() );
138-
AbstractBasicContext<?> abc = (AbstractBasicContext) e.getMondrianStatement().getMondrianConnection().getContext();
138+
AbstractBasicContext<?> abc = (AbstractBasicContext) e.getDaanseStatement().getDaanseConnection().getContext();
139139
aggMgr = (AggregationManager)abc.getAggregationManager();
140140
locus = new LocusImpl( e, "FastBatchingCellReaderTest", null );
141141
LocusImpl.push( locus );
@@ -470,7 +470,7 @@ void testGroupBatchesForTwoSetOfGroupableBatches(Context<?> context) {
470470

471471
// Until MONDRIAN-1001 is fixed, behavior is flaky due to interaction
472472
// with previous tests.
473-
if ( Bug.BugMondrian1001Fixed ) {
473+
if ( Bug.Bug1001Fixed ) {
474474
if ( context.getConfigValue(ConfigConstants.USE_AGGREGATES, ConfigConstants.USE_AGGREGATES_DEFAULT_VALUE ,Boolean.class) && context.getConfigValue(ConfigConstants.READ_AGGREGATES, ConfigConstants.READ_AGGREGATES_DEFAULT_VALUE ,Boolean.class) ) {
475475
assertEquals( 4, groupedBatchCount );
476476
} else {
@@ -812,7 +812,7 @@ void testCanBatchForBatchesFromSameAggregationButDifferentRollupOption(Context<?
812812
// with previous tests.
813813
final boolean batch2CanBatch1 = batch2.canBatch( batch1 );
814814
final boolean batch1CanBatch2 = batch1.canBatch( batch2 );
815-
if ( Bug.BugMondrian1001Fixed ) {
815+
if ( Bug.Bug1001Fixed ) {
816816
if ( context.getConfigValue(ConfigConstants.USE_AGGREGATES, ConfigConstants.USE_AGGREGATES_DEFAULT_VALUE ,Boolean.class) && context.getConfigValue(ConfigConstants.READ_AGGREGATES, ConfigConstants.READ_AGGREGATES_DEFAULT_VALUE ,Boolean.class) ) {
817817
assertFalse( batch2CanBatch1 );
818818
assertFalse( batch1CanBatch2 );

mondrian/src/test/java/mondrian/rolap/NonEmptyTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void testBugMondrian584EnumOrder(Context<?> context) {
120120
// in the query. Native evaluation returns the females before males,
121121
// which is probably a reflection of the database ordering.
122122
//
123-
if ( Bug.BugMondrian584Fixed ) {
123+
if ( Bug.Bug584Fixed ) {
124124
checkNative(context,
125125
4,
126126
4,
@@ -3900,7 +3900,7 @@ void testCjUnionEnumCalcMembers(Context<?> context) {
39003900
@ContextSource(propertyUpdater = AppandFoodMartCatalog.class, dataloader = FastFoodmardDataLoader.class)
39013901
void testNonEmptyWithWeirdDefaultMember(Context<?> context) {
39023902
((TestContextImpl)context).setLevelPreCacheThreshold(0);
3903-
if ( !Bug.BugMondrian229Fixed ) {
3903+
if ( !Bug.Bug229Fixed ) {
39043904
return;
39053905
}
39063906
/*
@@ -4466,7 +4466,7 @@ void testDependentSlicerMemberNative(Context<?> context) {
44664466
@ContextSource(propertyUpdater = AppandFoodMartCatalog.class, dataloader = FastFoodmardDataLoader.class)
44674467
void testBug1791609NonEmptyCrossJoinEliminatesCalcMember(Context<?> context) {
44684468
((TestContextImpl)context).setLevelPreCacheThreshold(0);
4469-
if ( !Bug.BugMondrian328Fixed ) {
4469+
if ( !Bug.Bug328Fixed ) {
44704470
return;
44714471
}
44724472
// From the bug:
@@ -4620,7 +4620,7 @@ void testNonEmptyLevelMembers(Context<?> context) {
46204620
+ "Row #1: 142,277.07\n"
46214621
+ "Row #1: 263,793.22\n" );
46224622

4623-
if ( Bug.BugMondrian446Fixed ) {
4623+
if ( Bug.Bug446Fixed ) {
46244624
SystemWideProperties.instance().EnableNativeNonEmpty = true;
46254625
assertQueryReturns(context.getConnectionWithDefaultRole(),
46264626
"WITH MEMBER [Measures].[One] AS '1' "

mondrian/src/test/java/mondrian/rolap/TestAggregationManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ private void prepareContext(Context<?> context) {
120120
.getInternalStatement();
121121
execution = new ExecutionImpl(statement, Optional.empty());
122122
aggMgr =
123-
(AggregationManager)((AbstractBasicContext)execution.getMondrianStatement()
124-
.getMondrianConnection()
123+
(AggregationManager)((AbstractBasicContext)execution.getDaanseStatement()
124+
.getDaanseConnection()
125125
.getContext()).getAggregationManager();
126126
locus = new LocusImpl(execution, "TestAggregationManager", null);
127127
LocusImpl.push(locus);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private void prepareContext(Context<?> context) {
108108
statement = ((Connection) connection).getInternalStatement();
109109
execution = new ExecutionImpl(statement, Optional.of(Duration.ofMillis(1000)));
110110
locus = new LocusImpl(execution, null, null);
111-
cacheMgr = (SegmentCacheManager) ((AbstractBasicContext)execution.getMondrianStatement().getMondrianConnection()
111+
cacheMgr = (SegmentCacheManager) ((AbstractBasicContext)execution.getDaanseStatement().getDaanseConnection()
112112
.getContext()).getAggregationManager().getCacheMgr();
113113

114114
LocusImpl.push(locus);

mondrian/src/test/java/mondrian/test/CompoundSlicerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ void testCompoundSlicer(Context<?> context) {
519519
+ "[Gender].Members on 1\n"
520520
+ "from [Sales]\n"
521521
+ "where {[Product].[Drink], [Product].[Food], [Product].[Drink]}",
522-
Bug.BugMondrian555Fixed
522+
Bug.Bug555Fixed
523523
? "Axis #0:\n"
524524
+ "{[Product].[Product].[Drink]}\n"
525525
+ "{[Product].[Product].[Food]}\n"
@@ -601,7 +601,7 @@ void testCompoundSlicer(Context<?> context) {
601601
+ " [Product].[Drink],\n"
602602
+ " [Product].[Food].[Dairy],\n"
603603
+ " [Product].[Drink].[Alcoholic Beverages].[Beer and Wine].[Beer]}",
604-
Bug.BugMondrian555Fixed
604+
Bug.Bug555Fixed
605605
? "Axis #0:\n"
606606
+ "{[Product].[Product].[Drink]}\n"
607607
+ "{[Product].[Product].[Food].[Dairy]}\n"

mondrian/src/test/java/mondrian/test/NativeSetEvaluationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ void testSlicerTuplesPartialCrossJoin(Context<?> context) {
909909
@ContextSource(propertyUpdater = AppandFoodMartCatalog.class, dataloader = FastFoodmardDataLoader.class)
910910
void testSlicerTuplesFullCrossJoin(Context<?> context) {
911911
if ( !context.getConfigValue(ConfigConstants.ENABLE_NATIVE_CROSS_JOIN, ConfigConstants.ENABLE_NATIVE_CROSS_JOIN_DEFAULT_VALUE, Boolean.class)
912-
&& !Bug.BugMondrian2452Fixed ) {
912+
&& !Bug.Bug2452Fixed ) {
913913
// The NonEmptyCrossJoin in the TSET named set below returns
914914
// extra tuples due to MONDRIAN-2452.
915915
return;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ void testCatalogReaderLevelMembers(Context<?> context)
14261426
@ParameterizedTest
14271427
@ContextSource(propertyUpdater = AppandFoodMartCatalog.class, dataloader = FastFoodmardDataLoader.class)
14281428
void testBridgeTable(Context<?> context) {
1429-
if (!Bug.BugMondrian441Fixed) {
1429+
if (!Bug.Bug441Fixed) {
14301430
return;
14311431
}
14321432
// The test case in the bug has a new table "bri_store_employee". For

mondrian/src/test/java/mondrian/test/PerformanceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void getBugMondrian550Schema(Context<?> context) {
188188
@ParameterizedTest
189189
@ContextSource(propertyUpdater = AppandFoodMartCatalog.class, dataloader = FastFoodmardDataLoader.class)
190190
void testMondrianBug641(Context<?> context) {
191-
if ( !Bug.BugMondrian641Fixed ) {
191+
if ( !Bug.Bug641Fixed ) {
192192
return;
193193
}
194194
long start = System.currentTimeMillis();

0 commit comments

Comments
 (0)