r1012 - xwiki/trunk/src/test/java/com/xpn/xwiki/test

Nguyen Viet Chung chungnv at users.forge.objectweb.org
Wed Mar 29 12:50:58 CEST 2006


Author: chungnv
Date: 2006-03-29 12:50:57 +0200 (Wed, 29 Mar 2006)
New Revision: 1012

Modified:
   xwiki/trunk/src/test/java/com/xpn/xwiki/test/Utils.java
Log:
Utils of test Utils with bug 161 . .

Modified: xwiki/trunk/src/test/java/com/xpn/xwiki/test/Utils.java
===================================================================
--- xwiki/trunk/src/test/java/com/xpn/xwiki/test/Utils.java	2006-03-29 09:47:25 UTC (rev 1011)
+++ xwiki/trunk/src/test/java/com/xpn/xwiki/test/Utils.java	2006-03-29 10:50:57 UTC (rev 1012)
@@ -1,27 +1,27 @@
-/*
- * 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 vmassol
- * @author sdumitriu
- * @author thomas
- */
+/*
+ * 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 vmassol
+ * @author sdumitriu
+ * @author thomas
+ */
 
 package com.xpn.xwiki.test;
 
@@ -110,8 +110,8 @@
         name = "WebHome";
         name2 = "Globals";
         web = "Main";
-        content1 = "Hello 1\nTexte avec des accents: àéçôù\nHello 3\n";
-        content3 = "Hello 1\nAutre texte àçèé\nHello 2\nHello 3\n";
+        content1 = "Hello 1\nTexte avec des accents: �����\nHello 3\n";
+        content3 = "Hello 1\nAutre texte ����\nHello 2\nHello 3\n";
         //try {
         // content1 = content1.getBytes("UTF-8").toString();
         // content3 = content3.getBytes("UTF-8").toString();
@@ -125,17 +125,17 @@
     }
 
     public static void setStandardIsoData() {
-        name = "Août2002";
+        name = "Ao�t2002";
         name2 = "Globals";
         web = "Main";
-        content1 = "Hello 1\nAoût\nHello 3\n";
+        content1 = "Hello 1\nAo�t\nHello 3\n";
         content3 = "Hello 1\nIntermediary line\nHello 2\nHello 3\n";
-        author = "XWiki.HelêneDupont";
+        author = "XWiki.Hel�neDupont";
         author2 = "XWiki.JulesVerne";
         parent = "Main.WebHome";
         version = "1.1";
         version2 = "1.2";
-        afilename = "août.txt";
+        afilename = "ao�t.txt";
     }
 
     public static void setMediumData() {
@@ -188,7 +188,7 @@
         return createDoc(store,web, name, content1, null, null, null, context);
     }
 
-    public static XWikiDocument createDoc(XWikiStoreInterface store, String web, String name, String content, XWikiContext context) throws XWikiException {
+    public static XWikiDocument createDoc(XWikiStoreInterface store, String web, String name, String content, BaseObject bobject, BaseClass bclass, XWikiContext context) throws XWikiException {
         return createDoc(store,web, name, content, null, null, null, context);
     }
 





More information about the Xwiki-notifications mailing list