From 4c0f31130ca8138ff93c869dd84e5726e043d97e Mon Sep 17 00:00:00 2001 From: Luc Boudreau Date: Tue, 8 Nov 2011 15:50:36 +0000 Subject: [PATCH] Fixes an issue with the XmlaTester where each and every request would create a new MondrianServer instance and wouldn't clean up after it is done running the test. The test case now uses the same proxy cookie across requests. This is the same strategy used in the MondrianOlap4jTester. git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@480 c6a108a4-781c-0410-a6c6-c2d559e19af0 --- testsrc/org/olap4j/XmlaTester.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testsrc/org/olap4j/XmlaTester.java b/testsrc/org/olap4j/XmlaTester.java index 74734f0..304ae49 100644 --- a/testsrc/org/olap4j/XmlaTester.java +++ b/testsrc/org/olap4j/XmlaTester.java @@ -27,7 +27,7 @@ public class XmlaTester implements TestContext.Tester { private final TestContext testContext; final XmlaOlap4jProxy proxy; - final String cookie; + final static String cookie = XmlaOlap4jDriver.nextCookie(); private Connection connection; /** @@ -72,7 +72,6 @@ public XmlaTester(TestContext testContext) this.proxy = (XmlaOlap4jProxy) constructor.newInstance( catalogNameUrls, urlString); - this.cookie = XmlaOlap4jDriver.nextCookie(); XmlaOlap4jDriver.PROXY_MAP.put(cookie, proxy); }