r1003 - xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests

Ludovic Dubost ludovic at users.forge.objectweb.org
Tue Mar 28 18:46:48 CEST 2006


Author: ludovic
Date: 2006-03-28 18:46:47 +0200 (Tue, 28 Mar 2006)
New Revision: 1003

Modified:
   xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/ChartingPluginTest.java
   xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/DataSourceFactoryTest.java
   xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/ObjectsTest.java
   xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/RadeoxHelperBug.java
   xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/RadeoxHelperTest.java
   xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/TableDataSourceTest.java
Log:
Fix for chart tests

Modified: xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/ChartingPluginTest.java
===================================================================
--- xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/ChartingPluginTest.java	2006-03-28 16:37:45 UTC (rev 1002)
+++ xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/ChartingPluginTest.java	2006-03-28 16:46:47 UTC (rev 1003)
@@ -1,25 +1,25 @@
-/*
- * Copyright 2006, XpertNet SARL, and individual contributors as indicated
- * by the contributors.txt.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- *
- * @author ludovic
- * @author sdumitriu
- */
+/*
+ * Copyright 2006, XpertNet SARL, and individual contributors as indicated
+ * by the contributors.txt.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *
+ * @author ludovic
+ * @author sdumitriu
+ */
 package com.xpn.xwiki.plugin.charts.tests;
 
 import java.io.File;
@@ -59,6 +59,7 @@
 	protected void setUp() throws Exception {
         this.config = new XWikiConfig();
         this.config.put("xwiki.store.class", "com.xpn.xwiki.plugin.charts.mocks.MockStore");
+        this.config.put("xwiki.store.attachment.class", "com.xpn.xwiki.plugin.charts.mocks.MockStore");
         this.xcontext = new XWikiContext();
         this.xwiki = new XWiki(this.config, this.xcontext);
         this.xcontext.setWiki(this.xwiki);

Modified: xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/DataSourceFactoryTest.java
===================================================================
--- xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/DataSourceFactoryTest.java	2006-03-28 16:37:45 UTC (rev 1002)
+++ xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/DataSourceFactoryTest.java	2006-03-28 16:46:47 UTC (rev 1003)
@@ -1,25 +1,25 @@
-/*
- * Copyright 2006, XpertNet SARL, and individual contributors as indicated
- * by the contributors.txt.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- *
- * @author ludovic
- * @author sdumitriu
- */
+/*
+ * Copyright 2006, XpertNet SARL, and individual contributors as indicated
+ * by the contributors.txt.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *
+ * @author ludovic
+ * @author sdumitriu
+ */
 package com.xpn.xwiki.plugin.charts.tests;
 
 import java.util.HashMap;
@@ -52,6 +52,7 @@
 	protected void setUp() throws Exception {
         this.config = new XWikiConfig();
         this.config.put("xwiki.store.class", "com.xpn.xwiki.plugin.charts.mocks.MockStore");
+        this.config.put("xwiki.store.attachment.class", "com.xpn.xwiki.plugin.charts.mocks.MockStore");
 
         this.context = new XWikiContext();
         this.xwiki = new XWiki(this.config, this.context);

Modified: xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/ObjectsTest.java
===================================================================
--- xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/ObjectsTest.java	2006-03-28 16:37:45 UTC (rev 1002)
+++ xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/ObjectsTest.java	2006-03-28 16:46:47 UTC (rev 1003)
@@ -1,25 +1,25 @@
-/*
- * Copyright 2006, XpertNet SARL, and individual contributors as indicated
- * by the contributors.txt.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- *
- * @author ludovic
- * @author sdumitriu
- */
+/*
+ * Copyright 2006, XpertNet SARL, and individual contributors as indicated
+ * by the contributors.txt.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *
+ * @author ludovic
+ * @author sdumitriu
+ */
 package com.xpn.xwiki.plugin.charts.tests;
 
 
@@ -49,6 +49,7 @@
 	protected void setUp() throws Exception {
         this.config = new XWikiConfig();
         this.config.put("xwiki.store.class", "com.xpn.xwiki.plugin.charts.mocks.MockStore");
+        this.config.put("xwiki.store.attachment.class", "com.xpn.xwiki.plugin.charts.mocks.MockStore");
 
         this.context = new XWikiContext();
         this.xwiki = new XWiki(this.config, this.context);

Modified: xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/RadeoxHelperBug.java
===================================================================
--- xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/RadeoxHelperBug.java	2006-03-28 16:37:45 UTC (rev 1002)
+++ xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/RadeoxHelperBug.java	2006-03-28 16:46:47 UTC (rev 1003)
@@ -1,24 +1,24 @@
-/*
- * Copyright 2006, XpertNet SARL, and individual contributors as indicated
- * by the contributors.txt.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- *
- * @author sdumitriu
- */
+/*
+ * Copyright 2006, XpertNet SARL, and individual contributors as indicated
+ * by the contributors.txt.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *
+ * @author sdumitriu
+ */
 package com.xpn.xwiki.plugin.charts.tests;
 
 import junit.framework.Assert;
@@ -41,6 +41,7 @@
 	protected void setUp() throws Exception {
         this.config = new XWikiConfig();
         this.config.put("xwiki.store.class", "com.xpn.xwiki.plugin.charts.mocks.MockStore");
+        this.config.put("xwiki.store.attachment.class", "com.xpn.xwiki.plugin.charts.mocks.MockStore");
 
         this.context = new XWikiContext();
         

Modified: xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/RadeoxHelperTest.java
===================================================================
--- xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/RadeoxHelperTest.java	2006-03-28 16:37:45 UTC (rev 1002)
+++ xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/RadeoxHelperTest.java	2006-03-28 16:46:47 UTC (rev 1003)
@@ -1,24 +1,24 @@
-/*
- * Copyright 2006, XpertNet SARL, and individual contributors as indicated
- * by the contributors.txt.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- *
- * @author sdumitriu
- */
+/*
+ * Copyright 2006, XpertNet SARL, and individual contributors as indicated
+ * by the contributors.txt.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *
+ * @author sdumitriu
+ */
 package com.xpn.xwiki.plugin.charts.tests;
 
 import java.util.ArrayList;
@@ -44,6 +44,7 @@
 	protected void setUp() throws Exception {
         this.config = new XWikiConfig();
         this.config.put("xwiki.store.class", "com.xpn.xwiki.plugin.charts.mocks.MockStore");
+        this.config.put("xwiki.store.attachment.class", "com.xpn.xwiki.plugin.charts.mocks.MockStore");
 
         this.context = new XWikiContext();
         

Modified: xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/TableDataSourceTest.java
===================================================================
--- xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/TableDataSourceTest.java	2006-03-28 16:37:45 UTC (rev 1002)
+++ xwiki/trunk/src/test/java/com/xpn/xwiki/plugin/charts/tests/TableDataSourceTest.java	2006-03-28 16:46:47 UTC (rev 1003)
@@ -1,25 +1,25 @@
-/*
- * Copyright 2006, XpertNet SARL, and individual contributors as indicated
- * by the contributors.txt.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- *
- * @author ludovic
- * @author sdumitriu
- */
+/*
+ * Copyright 2006, XpertNet SARL, and individual contributors as indicated
+ * by the contributors.txt.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *
+ * @author ludovic
+ * @author sdumitriu
+ */
 package com.xpn.xwiki.plugin.charts.tests;
 
 import junit.framework.Assert;
@@ -49,6 +49,7 @@
 	protected void setUp() throws Exception {
         this.config = new XWikiConfig();
         this.config.put("xwiki.store.class", "com.xpn.xwiki.plugin.charts.mocks.MockStore");
+        this.config.put("xwiki.store.attachment.class", "com.xpn.xwiki.plugin.charts.mocks.MockStore");
         this.context = new XWikiContext();
         this.xwiki = new XWiki(this.config, this.context);
         this.context.setWiki(this.xwiki);





More information about the Xwiki-notifications mailing list