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

Modified:
   
xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/framework/AlbatrossSkinExecutor.java
Log:
[cleanup] Fix compilation warnings


Modified: 
xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/framework/AlbatrossSkinExecutor.java
===================================================================
--- 
xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/framework/AlbatrossSkinExecutor.java
   2008-02-12 17:42:33 UTC (rev 7555)
+++ 
xwiki-products/xwiki-enterprise/trunk/distribution-test/selenium-tests/src/test/it/com/xpn/xwiki/it/selenium/framework/AlbatrossSkinExecutor.java
   2008-02-12 18:06:21 UTC (rev 7556)
@@ -19,6 +19,8 @@
  */
 package com.xpn.xwiki.it.selenium.framework;
 
+import junit.framework.Assert;
+
 /**
  * Implementation of skin-related actions for the Albatross skin.
  * 
@@ -75,9 +77,9 @@
 
     public void logout()
     {
-        getTest().assertTrue("User wasn't authenticated.", isAuthenticated());
+        Assert.assertTrue("User wasn't authenticated.", isAuthenticated());
         getTest().clickLinkWithLocator("headerlogout");
-        getTest().assertFalse("The user is still authenticated after a 
logout.",
+        Assert.assertFalse("The user is still authenticated after a logout.",
             isAuthenticated());
     }
 
@@ -98,7 +100,7 @@
         }
         getTest().submit();
 
-        getTest().assertTrue("User has not been authenticated", 
isAuthenticated());
+        Assert.assertTrue("User has not been authenticated", 
isAuthenticated());
     }
 
     public void loginAsAdmin()
@@ -230,20 +232,20 @@
     public void assertWikiTextGeneratedByWysiwyg(String text)
     {
         getTest().clickLinkWithText("Wiki");
-        getTest().assertEquals(text, 
getTest().getSelenium().getValue("content"));
+        Assert.assertEquals(text, getTest().getSelenium().getValue("content"));
     }
 
     public void assertHTMLGeneratedByWysiwyg(String xpath) throws Exception
     {
         getTest().getSelenium().selectFrame("mce_editor_0");
-        getTest().assertTrue(
+        Assert.assertTrue(
             getTest().getSelenium().isElementPresent("xpath=/html/body/" + 
xpath));
         getTest().getSelenium().selectFrame("relative=top");
     }
 
     public void assertGeneratedHTML(String xpath) throws Exception
     {
-        getTest().assertTrue(
+        Assert.assertTrue(
             getTest().getSelenium().isElementPresent("xpath=//[EMAIL 
PROTECTED]'xwikicontent']/" + xpath));
     }
 }

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

Reply via email to