Skip to content

Commit

Permalink
MONDRIAN Tests for change 7731.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 7732]
  • Loading branch information
Richard Emberson committed Sep 22, 2006
1 parent 4ebe02c commit f3f3c4f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
11 changes: 11 additions & 0 deletions testsrc/main/mondrian/test/CmdRunnerTest.java
Expand Up @@ -25,8 +25,19 @@ public class CmdRunnerTest extends FoodMartTestCase {
protected DiffRepository getDiffRepos() {
return DiffRepository.lookup(CmdRunnerTest.class);
}
public CmdRunnerTest() {
}
public CmdRunnerTest(String name) {
super(name);
}

public void testQuery() throws IOException {
doTest();
}
public void test7731() throws IOException {
doTest();
}
protected void doTest() {
final DiffRepository diffRepos = getDiffRepos();
String input = diffRepos.expand("input", "${input}");
final StringWriter sw = new StringWriter();
Expand Down
24 changes: 24 additions & 0 deletions testsrc/main/mondrian/test/CmdRunnerTest.ref.xml
Expand Up @@ -20,6 +20,30 @@ Axis #2:
Row #0: 24,597
Row #1: 191,940
Row #2: 50,236
]]>
</Resource>
</TestCase>
<TestCase name="test7731">
<Resource name="input">
<![CDATA[
with member [Measures].[Tom O'Neil] as '[Measures].[Unit Sales]'
SELECT {[Measures].[Tom O'Neil]} ON COLUMNS,
{[Product].Children} ON ROWS
FROM [Sales];
]]>
</Resource>
<Resource name="output">
<![CDATA[Axis #0:
{}
Axis #1:
{[Measures].[Tom O'Neil]}
Axis #2:
{[Product].[All Products].[Drink]}
{[Product].[All Products].[Food]}
{[Product].[All Products].[Non-Consumable]}
Row #0: 24,597
Row #1: 191,940
Row #2: 50,236
]]>
</Resource>
</TestCase>
Expand Down

0 comments on commit f3f3c4f

Please sign in to comment.