Skip to content

Commit

Permalink
[TEST] ReferenceLinks are not supported in Mondrian 4 yet (MONDRIAN-1…
Browse files Browse the repository at this point in the history
…337). testPartialRollupParentChildHierarchy used the [Store] dimension, which is a reference link in [HR]. Swapped with a different dimension.
  • Loading branch information
mkambol committed Jun 24, 2014
1 parent fbabc4a commit 65457f0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions testsrc/main/mondrian/test/AccessControlTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1658,28 +1658,28 @@ public void testPartialRollupParentChildHierarchy() {
+ " member=\"[Employees].[All Employees].[Sheri Nowmer].[Darren Stanz]\"\n"
+ " access=\"all\"/>\n"
+ " </HierarchyGrant>\n"
+ " <HierarchyGrant hierarchy=\"[Stores]\" access=\"custom\"\n"
+ " <HierarchyGrant hierarchy=\"[Time]\" access=\"custom\"\n"
+ " rollupPolicy=\"partial\">\n"
+ " <MemberGrant member=\"[Store].[All Stores].[USA].[CA]\" access=\"all\"/>\n"
+ " <MemberGrant member=\"[Time].[1997].[Q1]\" access=\"all\"/>\n"
+ " </HierarchyGrant>\n"
+ " </CubeGrant>\n"
+ " </SchemaGrant>\n"
+ "</Role>")
.withRole("Buggy Role");

final String mdx = "select\n"
+ " {[Measures].[Number of Employees]} on columns,\n"
+ " {[Stores]} on rows\n"
+ " {[Measures].[Org Salary]} on columns,\n"
+ " {[Time].[Time].[1997]} on rows\n"
+ "from HR";
testContext.assertQueryReturns(
mdx,
"Axis #0:\n"
+ "{}\n"
+ "Axis #1:\n"
+ "{[Measures].[Number of Employees]}\n"
+ "{[Measures].[Org Salary]}\n"
+ "Axis #2:\n"
+ "{[Store].[Stores].[All Stores]}\n"
+ "Row #0: 1\n");
+ "{[Time].[Time].[1997]}\n"
+ "Row #0: $208.17\n");
checkQuery(testContext, mdx);

final String mdx2 = "select\n"
Expand All @@ -1693,7 +1693,7 @@ public void testPartialRollupParentChildHierarchy() {
+ "Axis #1:\n"
+ "{[Measures].[Number of Employees]}\n"
+ "Axis #2:\n"
+ "{[Employees].[All Employees]}\n"
+ "{[Employee].[Employees].[All Employees]}\n"
+ "Row #0: 1\n");
checkQuery(testContext, mdx2);
}
Expand Down

0 comments on commit 65457f0

Please sign in to comment.