Author: vmassol Date: 2008-01-29 19:17:35 +0100 (Tue, 29 Jan 2008) New Revision: 7170
Modified: xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/doc/XWikiDocumentTest.java Log: Fixed ugly stack trace in logs appearing during test execution Modified: xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/doc/XWikiDocumentTest.java =================================================================== --- xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/doc/XWikiDocumentTest.java 2008-01-29 17:35:37 UTC (rev 7169) +++ xwiki-platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/doc/XWikiDocumentTest.java 2008-01-29 18:17:35 UTC (rev 7170) @@ -28,7 +28,7 @@ import com.xpn.xwiki.XWikiConfig; import com.xpn.xwiki.XWikiException; import com.xpn.xwiki.render.XWikiRenderingEngine; -import com.xpn.xwiki.store.XWikiHibernateVersioningStore; +import com.xpn.xwiki.store.XWikiVersioningStoreInterface; /** * Unit tests for [EMAIL PROTECTED] XWikiDocument}. @@ -54,9 +54,7 @@ this.mockXWikiRenderingEngine = mock(XWikiRenderingEngine.class); - this.mockXWikiVersioningStore = - mock(XWikiHibernateVersioningStore.class, new Class[] {XWiki.class, - XWikiContext.class}, new Object[] {this.mockXWiki.proxy(), this.context}); + this.mockXWikiVersioningStore = mock(XWikiVersioningStoreInterface.class); this.mockXWikiVersioningStore.stubs().method("getXWikiDocumentArchive").will( returnValue(null)); _______________________________________________ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications