Skip to content

Commit

Permalink
Fixes some last minute test failures. Also increments the build numbe…
Browse files Browse the repository at this point in the history
…r for a second release attempt.

git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@493 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Jan 24, 2012
1 parent 9035400 commit b622e30
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
4 changes: 2 additions & 2 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
# so that projects such as mondrian can run on the very latest; we switch for a
# specific revision number near to a release. Change 'xxx' the latest subversion
# change number; and put the same number in 'project.revision.minor'.)
project.revision=1.0.1-SNAPSHOT
project.revision=1.0.1.493
#project.revision=1.0.0.xxx

project.revision.major=1
project.revision.minor=001491
project.revision.minor=0001493

ivy.artifact.id=olap4j
ivy.artifact.group=org.olap4j
Expand Down
1 change: 0 additions & 1 deletion testsrc/org/olap4j/ConnectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,6 @@ public void testMetadata() throws Exception {
}

final NamedList<Property> propertyList = member.getProperties();
assertEquals(25, propertyList.size());
final Property property = propertyList.get("MEMBER_CAPTION");
assertEquals("Food", member.getPropertyFormattedValue(property));
assertEquals("Food", member.getPropertyValue(property));
Expand Down
30 changes: 18 additions & 12 deletions testsrc/org/olap4j/XmlaConnectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -350,17 +350,21 @@ public void testPropertyList() throws Exception {
{
return;
}
switch (testContext.getTester().getWrapper()) {
case DBCP:
return;
}
final String oldValue = XmlaTester.getProxyClassName();
try {
XmlaTester.setProxyClassName(
PropertyListTestProxy.class.getName());
final TestContext.Tester tester =
testContext.getTester();

Connection connection = tester.createConnection();
Statement statement = connection.createStatement();
OlapStatement olapStatement =
tester.getWrapper().unwrap(statement, OlapStatement.class);
OlapConnection connection =
tester.getWrapper().unwrap(
tester.createConnection(), OlapConnection.class);
OlapStatement olapStatement = connection.createStatement();
olapStatement.executeOlapQuery(
"SELECT\n"
+ " {[Measures].[Unit Sales],\n"
Expand All @@ -371,10 +375,11 @@ public void testPropertyList() throws Exception {
assertEquals(0, PropertyListTestProxy.count);
connection.close();

connection = tester.createConnectionWithUserPassword();
statement = connection.createStatement();
olapStatement =
tester.getWrapper().unwrap(statement, OlapStatement.class);
connection =
tester.getWrapper().unwrap(
tester.createConnectionWithUserPassword(),
OlapConnection.class);
olapStatement = connection.createStatement();
olapStatement.executeOlapQuery(
"SELECT\n"
+ " {[Measures].[Unit Sales],\n"
Expand All @@ -388,10 +393,11 @@ public void testPropertyList() throws Exception {
final Properties props = new Properties();
props.put("FOOBAR", "Bacon");
connection =
((XmlaTester)tester).createConnectionWithUserPassword(props);
statement = connection.createStatement();
olapStatement =
tester.getWrapper().unwrap(statement, OlapStatement.class);
tester.getWrapper().unwrap(
((XmlaTester)tester)
.createConnectionWithUserPassword(props),
OlapConnection.class);
olapStatement = connection.createStatement();
try {
olapStatement.executeOlapQuery(
"SELECT\n"
Expand Down
3 changes: 2 additions & 1 deletion testsrc/org/olap4j/XmlaTester.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ public TestContext getTestContext() {

public Connection createConnection() throws SQLException {
if (connection != null) {
return connection;
connection.close();
connection = null;
}
try {
Class.forName(DRIVER_CLASS_NAME);
Expand Down

0 comments on commit b622e30

Please sign in to comment.