Skip to content

Commit

Permalink
MONDRIAN: Oops. UdfTest was non-deterministic because many promotions…
Browse files Browse the repository at this point in the history
… have the same name.

[git-p4: depot-paths = "//open/mondrian/": change = 14336]
  • Loading branch information
julianhyde committed May 31, 2011
1 parent 9cdce04 commit 67ade9e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions testsrc/main/mondrian/test/UdfTest.java
Expand Up @@ -1261,7 +1261,7 @@ public void testPropertyFormatter() throws SQLException {
"<Dimension name='Promotions2' foreignKey='promotion_id'>\n"
+ " <Hierarchy hasAll='true' allMemberName='All Promotions' primaryKey='promotion_id' defaultMember='[All Promotions]'>\n"
+ " <Table name='promotion'/>\n"
+ " <Level name='Promotion Name' column='promotion_name' uniqueMembers='true'>\n"
+ " <Level name='Promotion Name' column='promotion_id' uniqueMembers='true'>\n"
+ " <Property name='Medium' column='media_type' formatter='"
+ FooBarPropertyFormatter.class.getName()
+ "'/>\n"
Expand All @@ -1276,8 +1276,8 @@ public void testPropertyFormatter() throws SQLException {
result.getAxes().get(0).getPositions().get(0).getMembers().get(0);
final Property property = member.getProperties().get("Medium");
assertEquals(
member.getPropertyFormattedValue(property),
"fooBag Stuffers/Medium/Bulk Mailbar");
"foo0/Medium/No Mediabar",
member.getPropertyFormattedValue(property));
}

/**
Expand All @@ -1292,7 +1292,7 @@ public void testPropertyFormatterNested() throws SQLException {
"<Dimension name='Promotions2' foreignKey='promotion_id'>\n"
+ " <Hierarchy hasAll='true' allMemberName='All Promotions' primaryKey='promotion_id' defaultMember='[All Promotions]'>\n"
+ " <Table name='promotion'/>\n"
+ " <Level name='Promotion Name' column='promotion_name' uniqueMembers='true'>\n"
+ " <Level name='Promotion Name' column='promotion_id' uniqueMembers='true'>\n"
+ " <Property name='Medium' column='media_type'>\n"
+ " <PropertyFormatter className='"
+ FooBarPropertyFormatter.class.getName()
Expand All @@ -1309,8 +1309,8 @@ public void testPropertyFormatterNested() throws SQLException {
result.getAxes().get(0).getPositions().get(0).getMembers().get(0);
final Property property = member.getProperties().get("Medium");
assertEquals(
member.getPropertyFormattedValue(property),
"fooBag Stuffers/Medium/Bulk Mailbar");
"foo0/Medium/No Mediabar",
member.getPropertyFormattedValue(property));
}

/**
Expand All @@ -1327,7 +1327,7 @@ public void testPropertyFormatterScript() throws SQLException {
"<Dimension name='Promotions2' foreignKey='promotion_id'>\n"
+ " <Hierarchy hasAll='true' allMemberName='All Promotions' primaryKey='promotion_id' defaultMember='[All Promotions]'>\n"
+ " <Table name='promotion'/>\n"
+ " <Level name='Promotion Name' column='promotion_name' uniqueMembers='true'>\n"
+ " <Level name='Promotion Name' column='promotion_id' uniqueMembers='true'>\n"
+ " <Property name='Medium' column='media_type'>\n"
+ " <PropertyFormatter>\n"
+ " <Script language='JavaScript'>\n"
Expand All @@ -1348,8 +1348,8 @@ public void testPropertyFormatterScript() throws SQLException {
result.getAxes().get(0).getPositions().get(0).getMembers().get(0);
final Property property = member.getProperties().get("Medium");
assertEquals(
member.getPropertyFormattedValue(property),
"fooBag Stuffers/Medium/Bulk Mailbar");
"foo0/Medium/No Mediabar",
member.getPropertyFormattedValue(property));
}

// ~ Inner classes --------------------------------------------------------
Expand Down

0 comments on commit 67ade9e

Please sign in to comment.