Pb in unit tests with my refactoring...
Hi, I'm still struggling to fix the tests that I have broken with my last refactoring (the generation of the hibernate config file tests.build.dir and its retrieval through the classpath). Sorry about that... I'm not sure what's the reason. Here's attached the test report of a test class that now fails. If you have any idea let me know. Also, I've noticed that the test/wiki.cfg file has: xwiki.store.hibernate.path=hibernate-test.cfg.xml Is that used anywhere? I thought that the config file was passed by the Java classes. Thanks -Vincent
Some tests load the XWiki object and in this case the xwiki.cfg file will have an impact on the hibernate config. Some tests directly work with XWikiHibernateStore class.. In this case the param is hardcoded in the java.. Try xwiki.store.hibernate.path=/hibernate-test.cfg.xml Ludovic Vincent Massol a écrit :
Hi,
I'm still struggling to fix the tests that I have broken with my last refactoring (the generation of the hibernate config file tests.build.dir and its retrieval through the classpath). Sorry about that...
I'm not sure what's the reason. Here's attached the test report of a test class that now fails. If you have any idea let me know.
Also, I've noticed that the test/wiki.cfg file has:
xwiki.store.hibernate.path=hibernate-test.cfg.xml
Is that used anywhere? I thought that the config file was passed by the Java classes.
Thanks -Vincent
------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?> <testsuite errors="1" failures="0" name="com.xpn.xwiki.test.ClassesTest" tests="13" time="5.858"> <properties> <property name="java.vendor" value="Sun Microsystems Inc."></property> <property name="lib.dir" value="C:\dev\xwiki\trunk/lib"></property> <property name="libs" value="C:\dev\xwiki\trunk\lib\alexa.jar;C:\dev\xwiki\trunk\lib\ant-1.6.2.jar;C:\dev\xwiki\trunk\lib\antlr-2.7.5.jar;C:\dev\xwiki\trunk\lib\asm-1.5.3.jar;C:\dev\xwiki\trunk\lib\asm-util-1.5.3.jar;C:\dev\xwiki\trunk\lib\avalon-framework-4.1.5.jar;C:\dev\xwiki\trunk\lib\axis-1.2RC2.jar;C:\dev\xwiki\trunk\lib\batik-1.6.jar;C:\dev\xwiki\trunk\lib\batik-awt-util-1.6.jar;C:\dev\xwiki\trunk\lib\batik-bridge-1.6.jar;C:\dev\xwiki\trunk\lib\batik-gvt-1.6.jar;C:\dev\xwiki\trunk\lib\batik-svg-dom-1.6.jar;C:\dev\xwiki\trunk\lib\batik-util-1.6.jar;C:\dev\xwiki\trunk\lib\c3p0-0.8.4.5.jar;C:\dev\xwiki\trunk\lib\cglib-2.1.jar;C:\dev\xwiki\trunk\lib\commons-beanutils-1.7.0.jar;C:\dev\xwiki\trunk\lib\commons-codec-1.3.jar;C:\dev\xwiki\trunk\lib\commons-collections-3.1.jar;C:\dev\xwiki\trunk\lib\commons-dbcp-1.2.1.jar;C:\dev\xwiki\trunk\lib\commons-digester-1.6.jar;C:\dev\xwiki\trunk\lib\commons-discovery-0.2.jar;C:\dev\xwiki\trunk\lib\commons-fileupload-1.0.jar;C:\dev\xwiki\trunk\lib\commons-httpclient-2.0.2.jar;C:\dev\xwiki\trunk\lib\commons-lang-2.0.jar;C:\dev\xwiki\trunk\lib\commons-logging-1.0.4.jar;C:\dev\xwiki\trunk\lib\commons-net-1.1.0.jar;C:\dev\xwiki\trunk\lib\commons-pool-1.1.jar;C:\dev\xwiki\trunk\lib\dom4j-1.6.jar;C:\dev\xwiki\trunk\lib\ecs-1.4.2.jar;C:\dev\xwiki\trunk\lib\ehcache-1.1.jar;C:\dev\xwiki\trunk\lib\flickrapi-1.0a7.jar;C:\dev\xwiki\trunk\lib\flipper.jar;C:\dev\xwiki\trunk\lib\fop-0.20.5.jar;C:\dev\xwiki\trunk\lib\googleadwords.jar;C:\dev\xwiki\trunk\lib\googleapi.jar;C:\dev\xwiki\trunk\lib\groovy-all-1.0-jsr-01.jar;C:\dev\xwiki\trunk\lib\hibernate-3.0.3.jar;C:\dev\xwiki\trunk\lib\hibernate-tools-2.1.3.jar;C:\dev\xwiki\trunk\lib\ical4j-0.9.12.jar;C:\dev\xwiki\trunk\lib\ipresolver.jar;C:\dev\xwiki\trunk\lib\jaxrpc-1.1.jar;C:\dev\xwiki\trunk\lib\jdom-1.0.jar;C:\dev\xwiki\trunk\lib\jgroups-2.2.5.jar;C:\dev\xwiki\trunk\lib\jimi.jar;C:\dev\xwiki\trunk\lib\jta.jar;C:\dev\xwiki\trunk\lib\jtidy.jar;C:\dev\xwiki\trunk\lib\ldap.jar;C:\dev\xwiki\trunk\lib\log4j-1.2.8.jar;C:\dev\xwiki\trunk\lib\mail-1.3.2.jar;C:\dev\xwiki\trunk\lib\mysql-connector-java-3.1.7-bin.jar;C:\dev\xwiki\trunk\lib\odmg-3.0.jar;C:\dev\xwiki\trunk\lib\org.apache.commons.jrcs.rcs.jar;C:\dev\xwiki\trunk\lib\oro-2.0.8.jar;C:\dev\xwiki\trunk\lib\oscache-2.0.2.jar;C:\dev\xwiki\trunk\lib\portlet.jar;C:\dev\xwiki\trunk\lib\radeox.jar;C:\dev\xwiki\trunk\lib\rome-0.6.jar;C:\dev\xwiki\trunk\lib\saaj-1.2.jar;C:\dev\xwiki\trunk\lib\securityfilter-2.0.jar;C:\dev\xwiki\trunk\lib\struts-1.2.4.jar;C:\dev\xwiki\trunk\lib\swarmcache.jar;C:\dev\xwiki\trunk\lib\terraservice.jar;C:\dev\xwiki\trunk\lib\velocity-1.4.jar;C:\dev\xwiki\trunk\lib\velocity-tools-1.1.jar;C:\dev\xwiki\trunk\lib\wsdl4j-1.5.jar;C:\dev\xwiki\trunk\lib\xalan-2.6.0.jar;C:\dev\xwiki\trunk\lib\xerces-2.4.0.jar;C:\dev\xwiki\trunk\lib\xml-apis-2.0.2.jar;C:\dev\xwiki\trunk\lib\xmlrpc-1.2.jar;C:\dev\xwiki\trunk\lib\exoplatform.container-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.chart.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.chart.impl-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.common.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.database.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.database.impl-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.organization.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.organization.impl-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.security.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.security.impl-1.0.jar;C:\dev\xwiki\trunk\lib\picocontainer-1.0.jar;C:\dev\xwiki\trunk\lib\servlet-api-2.4.jar"></property> <property name="cactus.warfile" value="C:\dev\xwiki\trunk/release/xwiki.war"></property> <property name="os.name" value="Windows XP"></property> <property name="sun.boot.class.path" value="C:\j2sdk1.4.2_05\jre\lib\rt.jar;C:\j2sdk1.4.2_05\jre\lib\i18n.jar;C:\j2sdk1.4.2_05\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_05\jre\lib\jsse.jar;C:\j2sdk1.4.2_05\jre\lib\jce.jar;C:\j2sdk1.4.2_05\jre\lib\charsets.jar;C:\j2sdk1.4.2_05\jre\classes"></property> <property name="test.reports.dir" value="C:\dev\xwiki\trunk/build/test-reports"></property> <property name="maven.site.deploy.live" value="true"></property> <property name="build.number" value="23"></property> <property name="resources.main.src.dir" value="C:\dev\xwiki\trunk/src//main//resources/"></property> <property name="sun.java2d.fontpath" value=""></property> <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."></property> <property name="ant.home" value="c:\apps\apache-ant-1.6.2"></property> <property name="java.runtime.version" value="1.4.2_05-b04"></property> <property name="xwiki.version" value="0.9"></property> <property name="xwiki.store.cache" value="1"></property> <property name="release.dir" value="C:\dev\xwiki\trunk/release"></property> <property name="user.name" value="Vincent Massol"></property> <property name="xwiki.perl.classespath" value="../classes"></property> <property name="xwiki.authentication" value="form"></property> <property name="xwiki.authentication.cookiedomains" value="xwiki.com,wiki.fr"></property> <property name="build.dir" value="C:\dev\xwiki\trunk/build"></property> <property name="xwiki.base" value="../../"></property> <property name="user.language" value="fr"></property> <property name="maven.repo.apache.passphrase" value=""></property> <property name="libs.exo" value="C:\dev\xwiki\trunk\lib\exoplatform.container-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.chart.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.chart.impl-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.common.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.database.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.database.impl-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.organization.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.organization.impl-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.security.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.security.impl-1.0.jar;C:\dev\xwiki\trunk\lib\picocontainer-1.0.jar"></property> <property name="sun.boot.library.path" value="C:\j2sdk1.4.2_05\jre\bin"></property> <property name="xwiki.stats.default" value="1"></property> <property name="doc.dir" value="C:\dev\xwiki\trunk/doc"></property> <property name="ant.project.name" value="XWiki Content and Application Management Framework"></property> <property name="test.clover.dir" value="C:\dev\xwiki\trunk/build/test-clover"></property> <property name="java.version" value="1.4.2_05"></property> <property name="version" value="0.9.23"></property> <property name="user.timezone" value=""></property> <property name="java.main.src.dir" value="C:\dev\xwiki\trunk/src//main//java/"></property> <property name="sun.arch.data.model" value="32"></property> <property name="test.src.dir" value="C:\dev\xwiki\trunk/src//test"></property> <property name="java.endorsed.dirs" value="C:\j2sdk1.4.2_05\jre\lib\endorsed"></property> <property name="xwiki.perl.pluginspath" value="/WEB-INF/perl"></property> <property name="sun.cpu.isalist" value="pentium i486 i386"></property> <property name="xwiki.perl.javaserverport" value="7890"></property> <property name="file.encoding.pkg" value="sun.io"></property> <property name="xwiki.perl.active" value="0"></property> <property name="file.separator" value="\"></property> <property name="java.specification.name" value="Java Platform API Specification"></property> <property name="maven.site.deploy.method" value="ssh"></property> <property name="maven.announcement.mail.server" value="localhost"></property> <property name="classes.dir" value="C:\dev\xwiki\trunk/build/web/WEB-INF/classes"></property> <property name="clover.initstring" value="C:\dev\xwiki\trunk\build\test-clover\clover"></property> <property name="java.class.version" value="48.0"></property> <property name="user.country" value="FR"></property> <property name="java.home" value="C:\j2sdk1.4.2_05\jre"></property> <property name="dist.dir" value="C:\dev\xwiki\trunk/dist"></property> <property name="java.vm.info" value="mixed mode"></property> <property name="xwiki.stats.class" value="com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl"></property> <property name="ant.file" value="C:\dev\xwiki\trunk\build.xml"></property> <property name="os.version" value="5.1"></property> <property name="xwiki.encoding" value="ISO-8859-1"></property> <property name="path.separator" value=";"></property> <property name="web.main.src.dir" value="C:\dev\xwiki\trunk/src//main//web"></property> <property name="java.vm.version" value="1.4.2_05-b04"></property> <property name="java.util.prefs.PreferencesFactory" value="java.util.prefs.WindowsPreferencesFactory"></property> <property name="user.variant" value=""></property> <property name="libs.tests" value="C:\dev\xwiki\trunk\lib\aspectjrt-1.2.1.jar;C:\dev\xwiki\trunk\lib\cactus-1.7.jar;C:\dev\xwiki\trunk\lib\cactus-ant-1.7.jar;C:\dev\xwiki\trunk\lib\clover-1.3.6.jar;C:\dev\xwiki\trunk\lib\hsqldb-1.7.3.jar;C:\dev\xwiki\trunk\lib\httpunit-1.6.jar;C:\dev\xwiki\trunk\lib\jmock-1.0.1.jar;C:\dev\xwiki\trunk\lib\jmock-cglib-1.0.1.jar;C:\dev\xwiki\trunk\lib\nekohtml-0.9.1.jar;C:\dev\xwiki\trunk\lib\org.mortbay.jetty-5.1.3.jar"></property> <property name="ant.library.dir" value="C:\apps\apache-ant-1.6.2\lib"></property> <property name="test-cactus.src.dir" value="C:\dev\xwiki\trunk/src//test-cactus"></property> <property name="maven.ssh.executable" value="tortoiseplink"></property> <property name="java.awt.printerjob" value="sun.awt.windows.WPrinterJob"></property> <property name="sun.io.unicode.encoding" value="UnicodeLittle"></property> <property name="maven.announcement.mail.from" value="Vincent Massol <[email protected]>"></property> <property name="awt.toolkit" value="sun.awt.windows.WToolkit"></property> <property name="xwiki.store.cache.capacity" value="100"></property> <property name="user.home" value="C:\Documents and Settings\Vincent Massol"></property> <property name="pkg" value="com.xpn.xwiki"></property> <property name="libs.main" value="C:\dev\xwiki\trunk\lib\alexa.jar;C:\dev\xwiki\trunk\lib\ant-1.6.2.jar;C:\dev\xwiki\trunk\lib\antlr-2.7.5.jar;C:\dev\xwiki\trunk\lib\asm-1.5.3.jar;C:\dev\xwiki\trunk\lib\asm-util-1.5.3.jar;C:\dev\xwiki\trunk\lib\avalon-framework-4.1.5.jar;C:\dev\xwiki\trunk\lib\axis-1.2RC2.jar;C:\dev\xwiki\trunk\lib\batik-1.6.jar;C:\dev\xwiki\trunk\lib\batik-awt-util-1.6.jar;C:\dev\xwiki\trunk\lib\batik-bridge-1.6.jar;C:\dev\xwiki\trunk\lib\batik-gvt-1.6.jar;C:\dev\xwiki\trunk\lib\batik-svg-dom-1.6.jar;C:\dev\xwiki\trunk\lib\batik-util-1.6.jar;C:\dev\xwiki\trunk\lib\c3p0-0.8.4.5.jar;C:\dev\xwiki\trunk\lib\cglib-2.1.jar;C:\dev\xwiki\trunk\lib\commons-beanutils-1.7.0.jar;C:\dev\xwiki\trunk\lib\commons-codec-1.3.jar;C:\dev\xwiki\trunk\lib\commons-collections-3.1.jar;C:\dev\xwiki\trunk\lib\commons-dbcp-1.2.1.jar;C:\dev\xwiki\trunk\lib\commons-digester-1.6.jar;C:\dev\xwiki\trunk\lib\commons-discovery-0.2.jar;C:\dev\xwiki\trunk\lib\commons-fileupload-1.0.jar;C:\dev\xwiki\trunk\lib\commons-httpclient-2.0.2.jar;C:\dev\xwiki\trunk\lib\commons-lang-2.0.jar;C:\dev\xwiki\trunk\lib\commons-logging-1.0.4.jar;C:\dev\xwiki\trunk\lib\commons-net-1.1.0.jar;C:\dev\xwiki\trunk\lib\commons-pool-1.1.jar;C:\dev\xwiki\trunk\lib\dom4j-1.6.jar;C:\dev\xwiki\trunk\lib\ecs-1.4.2.jar;C:\dev\xwiki\trunk\lib\ehcache-1.1.jar;C:\dev\xwiki\trunk\lib\flickrapi-1.0a7.jar;C:\dev\xwiki\trunk\lib\flipper.jar;C:\dev\xwiki\trunk\lib\fop-0.20.5.jar;C:\dev\xwiki\trunk\lib\googleadwords.jar;C:\dev\xwiki\trunk\lib\googleapi.jar;C:\dev\xwiki\trunk\lib\groovy-all-1.0-jsr-01.jar;C:\dev\xwiki\trunk\lib\hibernate-3.0.3.jar;C:\dev\xwiki\trunk\lib\hibernate-tools-2.1.3.jar;C:\dev\xwiki\trunk\lib\ical4j-0.9.12.jar;C:\dev\xwiki\trunk\lib\ipresolver.jar;C:\dev\xwiki\trunk\lib\jaxrpc-1.1.jar;C:\dev\xwiki\trunk\lib\jdom-1.0.jar;C:\dev\xwiki\trunk\lib\jgroups-2.2.5.jar;C:\dev\xwiki\trunk\lib\jimi.jar;C:\dev\xwiki\trunk\lib\jta.jar;C:\dev\xwiki\trunk\lib\jtidy.jar;C:\dev\xwiki\trunk\lib\ldap.jar;C:\dev\xwiki\trunk\lib\log4j-1.2.8.jar;C:\dev\xwiki\trunk\lib\mail-1.3.2.jar;C:\dev\xwiki\trunk\lib\mysql-connector-java-3.1.7-bin.jar;C:\dev\xwiki\trunk\lib\odmg-3.0.jar;C:\dev\xwiki\trunk\lib\org.apache.commons.jrcs.rcs.jar;C:\dev\xwiki\trunk\lib\oro-2.0.8.jar;C:\dev\xwiki\trunk\lib\oscache-2.0.2.jar;C:\dev\xwiki\trunk\lib\portlet.jar;C:\dev\xwiki\trunk\lib\radeox.jar;C:\dev\xwiki\trunk\lib\rome-0.6.jar;C:\dev\xwiki\trunk\lib\saaj-1.2.jar;C:\dev\xwiki\trunk\lib\securityfilter-2.0.jar;C:\dev\xwiki\trunk\lib\struts-1.2.4.jar;C:\dev\xwiki\trunk\lib\swarmcache.jar;C:\dev\xwiki\trunk\lib\terraservice.jar;C:\dev\xwiki\trunk\lib\velocity-1.4.jar;C:\dev\xwiki\trunk\lib\velocity-tools-1.1.jar;C:\dev\xwiki\trunk\lib\wsdl4j-1.5.jar;C:\dev\xwiki\trunk\lib\xalan-2.6.0.jar;C:\dev\xwiki\trunk\lib\xerces-2.4.0.jar;C:\dev\xwiki\trunk\lib\xml-apis-2.0.2.jar;C:\dev\xwiki\trunk\lib\xmlrpc-1.2.jar"></property> <property name="java.specification.vendor" value="Sun Microsystems Inc."></property> <property name="xwiki.plugins" value="com.xpn.xwiki.plugin.calendar.CalendarPlugin, com.xpn.xwiki.plugin.feed.FeedPlugin,com.xpn.xwiki.plugin.ldap.LDAPPlugin,com.xpn.xwiki.plugin.google.GooglePlugin,com.xpn.xwiki.plugin.alexa.AlexaPlugin,com.xpn.xwiki.plugin.ipresolver.IPResolverPlugin,com.xpn.xwiki.plugin.terraserver.TerraServerPlugin,com.xpn.xwiki.plugin.google.AdWordsPlugin,com.xpn.xwiki.plugin.flickr.FlickrPlugin,com.xpn.xwiki.plugin.mail.MailPlugin"></property> <property name="exo.warfile" value="C:\dev\xwiki\trunk/release/xwiki-exo-0.9.23.war"></property> <property name="java.vendor.url" value="http://java.sun.com/"></property> <property name="java.library.path" value="C:\j2sdk1.4.2_05\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;c:\j2sdk1.4.2_05\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\COMMON~1\SONICS~1\;C:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager\IM;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft Office\OFFICE11\Business Contact Manager\;C:\Program Files\Starbase\StarGate SDK\Lib;C:\Program Files\Starbase\StarGate SDK\Bin;C:\Program Files\ATI Technologies\ATI Control Panel;c:\apps\apache-ant-1.6.2\bin;c:\apps\maven-1.0.2\bin;c:\apps\groovy\bin;C:\apps\svn-win32-1.0.8\bin;C:\Program Files\TortoiseCVS;c:\apps\aspectj1.2\bin;c:\apps\cruisecontrol-2.2.1\main\bin;c:\apps\maven2\bin"></property> <property name="xwiki.store.class" value="com.xpn.xwiki.store.XWikiHibernateStore"></property> <property name="java.vm.vendor" value="Sun Microsystems Inc."></property> <property name="java.runtime.name" value="Java(TM) 2 Runtime Environment, Standard Edition"></property> <property name="maven.username" value="vmassol"></property> <property name="ant.version" value="Apache Ant version 1.6.2 compiled on July 16 2004"></property> <property name="java.class.path" value="C:\dev\xwiki\trunk\build\test;C:\dev\xwiki\trunk\build\web\WEB-INF\classes;C:\dev\xwiki\trunk\lib\alexa.jar;C:\dev\xwiki\trunk\lib\ant-1.6.2.jar;C:\dev\xwiki\trunk\lib\antlr-2.7.5.jar;C:\dev\xwiki\trunk\lib\asm-1.5.3.jar;C:\dev\xwiki\trunk\lib\asm-util-1.5.3.jar;C:\dev\xwiki\trunk\lib\avalon-framework-4.1.5.jar;C:\dev\xwiki\trunk\lib\axis-1.2RC2.jar;C:\dev\xwiki\trunk\lib\batik-1.6.jar;C:\dev\xwiki\trunk\lib\batik-awt-util-1.6.jar;C:\dev\xwiki\trunk\lib\batik-bridge-1.6.jar;C:\dev\xwiki\trunk\lib\batik-gvt-1.6.jar;C:\dev\xwiki\trunk\lib\batik-svg-dom-1.6.jar;C:\dev\xwiki\trunk\lib\batik-util-1.6.jar;C:\dev\xwiki\trunk\lib\c3p0-0.8.4.5.jar;C:\dev\xwiki\trunk\lib\cglib-2.1.jar;C:\dev\xwiki\trunk\lib\commons-beanutils-1.7.0.jar;C:\dev\xwiki\trunk\lib\commons-codec-1.3.jar;C:\dev\xwiki\trunk\lib\commons-collections-3.1.jar;C:\dev\xwiki\trunk\lib\commons-dbcp-1.2.1.jar;C:\dev\xwiki\trunk\lib\commons-digester-1.6.jar;C:\dev\xwiki\trunk\lib\commons-discovery-0.2.jar;C:\dev\xwiki\trunk\lib\commons-fileupload-1.0.jar;C:\dev\xwiki\trunk\lib\commons-httpclient-2.0.2.jar;C:\dev\xwiki\trunk\lib\commons-lang-2.0.jar;C:\dev\xwiki\trunk\lib\commons-logging-1.0.4.jar;C:\dev\xwiki\trunk\lib\commons-net-1.1.0.jar;C:\dev\xwiki\trunk\lib\commons-pool-1.1.jar;C:\dev\xwiki\trunk\lib\dom4j-1.6.jar;C:\dev\xwiki\trunk\lib\ecs-1.4.2.jar;C:\dev\xwiki\trunk\lib\ehcache-1.1.jar;C:\dev\xwiki\trunk\lib\flickrapi-1.0a7.jar;C:\dev\xwiki\trunk\lib\flipper.jar;C:\dev\xwiki\trunk\lib\fop-0.20.5.jar;C:\dev\xwiki\trunk\lib\googleadwords.jar;C:\dev\xwiki\trunk\lib\googleapi.jar;C:\dev\xwiki\trunk\lib\groovy-all-1.0-jsr-01.jar;C:\dev\xwiki\trunk\lib\hibernate-3.0.3.jar;C:\dev\xwiki\trunk\lib\hibernate-tools-2.1.3.jar;C:\dev\xwiki\trunk\lib\ical4j-0.9.12.jar;C:\dev\xwiki\trunk\lib\ipresolver.jar;C:\dev\xwiki\trunk\lib\jaxrpc-1.1.jar;C:\dev\xwiki\trunk\lib\jdom-1.0.jar;C:\dev\xwiki\trunk\lib\jgroups-2.2.5.jar;C:\dev\xwiki\trunk\lib\jimi.jar;C:\dev\xwiki\trunk\lib\jta.jar;C:\dev\xwiki\trunk\lib\jtidy.jar;C:\dev\xwiki\trunk\lib\ldap.jar;C:\dev\xwiki\trunk\lib\log4j-1.2.8.jar;C:\dev\xwiki\trunk\lib\mail-1.3.2.jar;C:\dev\xwiki\trunk\lib\mysql-connector-java-3.1.7-bin.jar;C:\dev\xwiki\trunk\lib\odmg-3.0.jar;C:\dev\xwiki\trunk\lib\org.apache.commons.jrcs.rcs.jar;C:\dev\xwiki\trunk\lib\oro-2.0.8.jar;C:\dev\xwiki\trunk\lib\oscache-2.0.2.jar;C:\dev\xwiki\trunk\lib\portlet.jar;C:\dev\xwiki\trunk\lib\radeox.jar;C:\dev\xwiki\trunk\lib\rome-0.6.jar;C:\dev\xwiki\trunk\lib\saaj-1.2.jar;C:\dev\xwiki\trunk\lib\securityfilter-2.0.jar;C:\dev\xwiki\trunk\lib\struts-1.2.4.jar;C:\dev\xwiki\trunk\lib\swarmcache.jar;C:\dev\xwiki\trunk\lib\terraservice.jar;C:\dev\xwiki\trunk\lib\velocity-1.4.jar;C:\dev\xwiki\trunk\lib\velocity-tools-1.1.jar;C:\dev\xwiki\trunk\lib\wsdl4j-1.5.jar;C:\dev\xwiki\trunk\lib\xalan-2.6.0.jar;C:\dev\xwiki\trunk\lib\xerces-2.4.0.jar;C:\dev\xwiki\trunk\lib\xml-apis-2.0.2.jar;C:\dev\xwiki\trunk\lib\xmlrpc-1.2.jar;C:\dev\xwiki\trunk\lib\exoplatform.container-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.chart.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.chart.impl-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.common.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.database.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.database.impl-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.organization.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.organization.impl-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.security.api-1.0.jar;C:\dev\xwiki\trunk\lib\exoplatform.services.security.impl-1.0.jar;C:\dev\xwiki\trunk\lib\picocontainer-1.0.jar;C:\dev\xwiki\trunk\lib\servlet-api-2.4.jar;C:\dev\xwiki\trunk\lib\aspectjrt-1.2.1.jar;C:\dev\xwiki\trunk\lib\cactus-1.7.jar;C:\dev\xwiki\trunk\lib\cactus-ant-1.7.jar;C:\dev\xwiki\trunk\lib\clover-1.3.6.jar;C:\dev\xwiki\trunk\lib\hsqldb-1.7.3.jar;C:\dev\xwiki\trunk\lib\httpunit-1.6.jar;C:\dev\xwiki\trunk\lib\jmock-1.0.1.jar;C:\dev\xwiki\trunk\lib\jmock-cglib-1.0.1.jar;C:\dev\xwiki\trunk\lib\nekohtml-0.9.1.jar;C:\dev\xwiki\trunk\lib\org.mortbay.jetty-5.1.3.jar;C:\apps\apache-ant-1.6.2\lib\junit-3.8.1.jar;C:\apps\apache-ant-1.6.2\lib\ant-launcher.jar;C:\apps\apache-ant-1.6.2\lib\ant.jar;C:\apps\apache-ant-1.6.2\lib\ant-junit.jar"></property> <property name="maven.repo.list" value="apache"></property> <property name="tests.build.dir" value="C:\dev\xwiki\trunk/build/test"></property> <property name="xwiki.virtual" value="0"></property> <property name="xwiki.store.hibernate.path" value="/WEB-INF/hibernate.cfg.xml"></property> <property name="compiler" value="modern"></property> <property name="java.vm.specification.name" value="Java Virtual Machine Specification"></property> <property name="app.name" value="xwiki"></property> <property name="java.vm.specification.version" value="1.0"></property> <property name="sun.os.patch.level" value="Service Pack 2"></property> <property name="sun.cpu.endian" value="little"></property> <property name="maven.repo.apache.username" value="vmassol"></property> <property name="java.io.tmpdir" value="C:\DOCUME~1\VINCEN~1\LOCALS~1\Temp\"></property> <property name="tests.filtersfile" value="C:\dev\xwiki\trunk/test/hsqldb_filters.properties"></property> <property name="maven.scp.executable" value="pscp"></property> <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"></property> <property name="xwiki.authentication.validationKey" value="totototototototototototototototo"></property> <property name="xwiki.stats" value="1"></property> <property name="xwiki.perl.perlpath" value="perl"></property> <property name="java.awt.graphicsenv" value="sun.awt.Win32GraphicsEnvironment"></property> <property name="os.arch" value="x86"></property> <property name="java.ext.dirs" value="C:\j2sdk1.4.2_05\jre\lib\ext"></property> <property name="junit.available" value="true"></property> <property name="user.dir" value="C:\dev\xwiki\trunk\test"></property> <property name="xwiki.authentication.encryptionKey" value="titititititititititititititititi"></property> <property name="release.warfile" value="C:\dev\xwiki\trunk/release/xwiki-0.9.23.war"></property> <property name="line.separator" value=" "></property> <property name="java.vm.name" value="Java HotSpot(TM) Client VM"></property> <property name="basedir" value="C:\dev\xwiki\trunk"></property> <property name="libs.servlet" value="C:\dev\xwiki\trunk\lib\servlet-api-2.4.jar"></property> <property name="ant.java.version" value="1.4"></property> <property name="ant.file.XWiki Content and Application Management Framework" value="C:\dev\xwiki\trunk\build.xml"></property> <property name="xwiki.exo" value="0"></property> <property name="file.encoding" value="Cp1252"></property> <property name="main.src.dir" value="C:\dev\xwiki\trunk/src//main/"></property> <property name="java.specification.version" value="1.4"></property> <property name="src.dir" value="C:\dev\xwiki\trunk/src/"></property> <property name="javadoc.dir" value="C:\dev\xwiki\trunk/doc/api"></property> <property name="maven.repo.apache.privatekey" value="C:/Documents and Settings/Vincent Massol/My Documents/.ssh/vmassol.ssh2.private.openssh"></property> </properties> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testNumber" time="0.04"></testcase> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testString" time="0.0"></testcase> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testPassword" time="0.01"></testcase> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testTextArea" time="0.0"></testcase> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testBoolean" time="0.0"></testcase> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testStaticList" time="0.041"></testcase> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testStaticMultiList" time="0.01"></testcase> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testRelationalStaticList" time="0.0"></testcase> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testBasicDisplayers" time="0.19"></testcase> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testBooleanDisplayers" time="0.1"></testcase> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testListDisplayers" time="0.0"></testcase> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testDBListDisplayers" time="5.177"> <error message="Error number 3201 in 3: Exception while saving document XWiki.XWikiUsers Wrapped Exception: could not find file: hibernate-test.cfg.xml" type="com.xpn.xwiki.XWikiException">com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiUsers Wrapped Exception: could not find file: hibernate-test.cfg.xml at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:532) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:549) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:557) at com.xpn.xwiki.XWiki.getUserClass(XWiki.java:1316) at com.xpn.xwiki.test.ClassesTest.testDBListDisplayers(ClassesTest.java:204) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Wrapped Exception:
org.hibernate.HibernateException: could not find file: hibernate-test.cfg.xml at org.hibernate.cfg.Configuration.configure(Configuration.java:1199) at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:115) at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:250) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:466) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:549) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:557) at com.xpn.xwiki.XWiki.getUserClass(XWiki.java:1316) at com.xpn.xwiki.test.ClassesTest.testDBListDisplayers(ClassesTest.java:204) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) Caused by: java.io.FileNotFoundException: hibernate-test.cfg.xml (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.hibernate.cfg.Configuration.configure(Configuration.java:1196) ... 23 more </error> </testcase> <testcase classname="com.xpn.xwiki.test.ClassesTest" name="testObject" time="0.0"></testcase> <system-out><![CDATA[************* = /C:/dev/xwiki/trunk/build/test/hibernate-test.cfg.xml 18:04:05,609 WARN main Configurator:configure:126 - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/dev/xwiki/trunk/lib/ehcache-1.1.jar!/ehcache-failsafe.xml 18:04:08,172 ERROR main XWikiHibernateStore:updateSchema:232 - Failed updating schema: null ]]></system-out> <system-err><![CDATA[]]></system-err> </testsuite>
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
-----Original Message----- From: Ludovic Dubost [mailto:[email protected]] Sent: mardi 31 mai 2005 18:44 To: [email protected] Subject: Re: [xwiki-dev] Pb in unit tests with my refactoring...
Some tests load the XWiki object and in this case the xwiki.cfg file will have an impact on the hibernate config.
I'm currently trying to fix the ClassesTest.java tests. They seem to use the XWikiHibernateStore class but the error that I get seems to indicate it's using the value in xwiki.store.hibernate.path property: org.hibernate.HibernateException: could not find file: hibernate-test.cfg.xml at org.hibernate.cfg.Configuration.configure(Configuration.java:1199) at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.ja va:115) at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.j ava:250) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.jav a:466) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.jav a:549) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:557) at com.xpn.xwiki.XWiki.getUserClass(XWiki.java:1316) at com.xpn.xwiki.test.ClassesTest.testDBListDisplayers(ClassesTest.java:204)
Some tests directly work with XWikiHibernateStore class.. In this case the param is hardcoded in the java..
Try xwiki.store.hibernate.path=/hibernate-test.cfg.xml
I don't see how this could work. You need to use getClss().getResource() to make this work... -Vincent _____________________________________________________________________________ D�couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid�os ! Cr�ez votre Yahoo! Mail sur http://fr.mail.yahoo.com
There is something wrong in this test: XWikiContext context = new XWikiContext(); XWiki xwiki = new XWiki("./xwiki.cfg", context); context.setWiki(xwiki); StoreHibernateTest.cleanUp(new XWikiHibernateStore(StoreHibernateTest.hibpath), context); This uses both configs.. The one from xwiki.cfg comming from the new XWiki() and the one from StoreHibernateTest.hibpath Something like StoreHibernateTest.cleanUp(getHibStore(), context); instead of the last line should work.. Ludovic Vincent Massol a écrit :
-----Original Message----- From: Ludovic Dubost [mailto:[email protected]] Sent: mardi 31 mai 2005 18:44 To: [email protected] Subject: Re: [xwiki-dev] Pb in unit tests with my refactoring...
Some tests load the XWiki object and in this case the xwiki.cfg file will have an impact on the hibernate config.
I'm currently trying to fix the ClassesTest.java tests. They seem to use the XWikiHibernateStore class but the error that I get seems to indicate it's using the value in xwiki.store.hibernate.path property:
org.hibernate.HibernateException: could not find file: hibernate-test.cfg.xml at org.hibernate.cfg.Configuration.configure(Configuration.java:1199) at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.ja va:115) at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.j ava:250) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.jav a:466) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.jav a:549) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:557) at com.xpn.xwiki.XWiki.getUserClass(XWiki.java:1316) at com.xpn.xwiki.test.ClassesTest.testDBListDisplayers(ClassesTest.java:204)
Some tests directly work with XWikiHibernateStore class.. In this case the param is hardcoded in the java..
Try xwiki.store.hibernate.path=/hibernate-test.cfg.xml
I don't see how this could work. You need to use getClss().getResource() to make this work...
-Vincent
_____________________________________________________________________________ Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
participants (2)
-
Ludovic Dubost -
Vincent Massol