Author: sdumitriu
Date: 2008-02-12 19:06:51 +0100 (Tue, 12 Feb 2008)
New Revision: 7557

Modified:
   
xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/RegisterTest.java
   
xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/framework/AbstractXWikiTestCase.java
Log:
[cleanup] Make getURL methods shared


Modified: 
xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/RegisterTest.java
===================================================================
--- 
xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/RegisterTest.java
      2008-02-12 18:06:21 UTC (rev 7556)
+++ 
xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/RegisterTest.java
      2008-02-12 18:06:51 UTC (rev 7557)
@@ -163,21 +163,4 @@
 
         return exists;
     }
-
-
-    // TODO decide whether we really want this
-    private String getUrl(String space, String doc)
-    {
-        return getUrl(space, doc, "view");
-    }
-
-    private String getUrl(String space, String doc, String action)
-    {
-        return "/xwiki/bin/"+action+"/"+space+"/"+doc;
-    }
-
-    private String getUrl(String space, String doc, String action, String 
param)
-    {
-        return getUrl(space, doc, action)+"?"+param;
-    }
 }

Modified: 
xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/framework/AbstractXWikiTestCase.java
===================================================================
--- 
xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/framework/AbstractXWikiTestCase.java
   2008-02-12 18:06:21 UTC (rev 7556)
+++ 
xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/framework/AbstractXWikiTestCase.java
   2008-02-12 18:06:51 UTC (rev 7557)
@@ -363,4 +363,19 @@
     {
         getSkinExecutor().assertGeneratedHTML(xpath);
     }
+
+    public String getUrl(String space, String doc)
+    {
+        return getUrl(space, doc, "view");
+    }
+
+    public String getUrl(String space, String doc, String action)
+    {
+        return "/xwiki/bin/"+action+"/"+space+"/"+doc;
+    }
+
+    public String getUrl(String space, String doc, String action, String param)
+    {
+        return getUrl(space, doc, action)+"?"+param;
+    }
 }

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to