diff --git a/build.xml b/build.xml index 1b4d6f2..eb46c41 100644 --- a/build.xml +++ b/build.xml @@ -90,7 +90,13 @@ src/org/olap4j/driver/xmla/XmlaOlap4jDriverVersion.java" /> - + + + + + + - + + @@ -293,31 +300,55 @@ class XmlaOlap4jDriverVersion { javacchome="${lib.dir}"/> - - - - - + - + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/foodmart/foodmart.zip b/foodmart/foodmart.zip deleted file mode 100644 index 7e69f2e..0000000 Binary files a/foodmart/foodmart.zip and /dev/null differ diff --git a/ivy-tck.xml b/ivy-tck.xml index a44c379..9e5d732 100644 --- a/ivy-tck.xml +++ b/ivy-tck.xml @@ -52,8 +52,6 @@ - - @@ -69,9 +67,10 @@ - + + diff --git a/subfloor.xml b/subfloor.xml index e681f6a..7adab5f 100644 --- a/subfloor.xml +++ b/subfloor.xml @@ -343,7 +343,6 @@ TYPICAL TARGET SEQUENCE - diff --git a/test.properties b/test.properties index 5631d86..92ce817 100644 --- a/test.properties +++ b/test.properties @@ -35,20 +35,20 @@ # It is the default in-process Mondrian tester. # By default, it will use a file based HSQLDB in the # /foodmart folder. If you want to test olap4j against -# a different database, edit the jdbc.properties file -# in the /simple-jndi folder. +# a different database, edit 'org.olap4j.test.connectUrl' org.olap4j.test.helperClassName=mondrian.test.MondrianOlap4jTester -org.olap4j.test.connectUrl=jdbc:mondrian:Datasource=jdbc/SampleData;Catalog=./foodmart/FoodMart.xml; ############################################################################### # These two lines activate the XMLA tester. Uncomment the two -# lines below to activate it. Make sure you comment out all others. +# lines below to activate it. Make sure you comment out the other +# 'org.olap4j.test.helperClassName' property above. +# # The in-process XML/A tester is a memory hog. Read the comment above. +# # By default, it will use a file based HSQLDB in the # /foodmart folder. If you want to test olap4j against -# a different database, edit the jdbc.properties file -# in the /simple-jndi folder. +# a different database, edit 'org.olap4j.test.connectUrl' #org.olap4j.test.helperClassName=org.olap4j.XmlaTester #org.olap4j.XmlaTester.CatalogUrl=file:foodmart/FoodMart.xml @@ -81,4 +81,33 @@ org.olap4j.test.connectUrl=jdbc:mondrian:Datasource=jdbc/SampleData;Catalog=./fo #org.olap4j.test.helperClassName=org.olap4j.RemoteXmlaTester #org.olap4j.RemoteXmlaTester.JdbcUrl=jdbc:xmla:Server=http://localhost:81/mondrian/xmla;Cache=org.olap4j.driver.xmla.cache.XmlaDatabaseCache;Cache.Init=true;Cache.Record=true +############################################################################### +# This is a URL used to create a Mondrian connection to test against. +# You don't need to touch it, unless you are using the remote xmla +# tester, or if your Foodmart is deployed on another DBMS. +# If you deploy Foodmart in another DBMS and you modify this line, +# you might want to set 'org.olap4j.foodmartLoader.disabled' down below. +org.olap4j.test.connectUrl=jdbc\:mondrian\:Catalog\=./foodmart/FoodMart.xml;;JdbcDriver\=org.hsqldb.jdbcDriver;Jdbc\=jdbc\:hsqldb\:file\:foodmart/foodmart;JdbcUser\=sa;JdbcPassword\= + +# This is an example URL for Foodmart deployed in MySQL. +# You will need to add a JAR driver into the 'dev-lib' folder +# for it to work. +#org.olap4j.test.connectUrl=jdbc\:mondrian\:Catalog\=./foodmart/FoodMart.xml;;JdbcDriver\=com.mysql.jdbc.Driver;Jdbc\=jdbc\:mysql\://localhost\:3306/foodmart;JdbcUser\=foodmart;JdbcPassword\=foodmart + +############################################################################### +# These properties allow the build script to load FoodMart into +# an HSQLDB database so it can run the tests. +# It only gets executed once, or after invocations of 'clean-all'. +# It is possible to make this script deploy Foodmart in another +# DBMS and run the tests against it, but it needs some hacking. +# You would need to tweak 'org.olap4j.test.connectUrl' and +# disable some checks in build.xml. +org.olap4j.foodmartLoader.driver=org.hsqldb.jdbcDriver +org.olap4j.foodmartLoader.url=jdbc\:hsqldb\:file\:foodmart/foodmart +org.olap4j.foodmartLoader.user=sa +org.olap4j.foodmartLoader.password= +# You can disable the loader altogether by uncommenting this line. +#org.olap4j.foodmartLoader.disabled=true + +############################################################################### # End test.properties diff --git a/testsrc/jndi.properties b/testsrc/jndi.properties deleted file mode 100644 index 352f861..0000000 --- a/testsrc/jndi.properties +++ /dev/null @@ -1,4 +0,0 @@ -java.naming.factory.initial=org.osjava.sj.SimpleContextFactory -org.osjava.sj.root=simple-jndi/ -org.osjava.sj.jndi.shared=true -org.osjava.sj.delimiter=/ \ No newline at end of file