[richfaces-svn-commits] JBoss Rich Faces SVN: r11706 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Dec 10 12:18:57 EST 2008


Author: dsvyatobatsko
Date: 2008-12-10 12:18:57 -0500 (Wed, 10 Dec 2008)
New Revision: 11706

Modified:
   trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
deprecated method usage removed

Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java	2008-12-10 17:08:13 UTC (rev 11705)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java	2008-12-10 17:18:57 UTC (rev 11706)
@@ -429,25 +429,25 @@
         String calendarPopupButton = calendarCollapsedId + "Button";
         String outputPanel = containerId + "outputPanel";
 
-        Assert.assertFalse(isVisibleById(calendarOpenedId), "Calendar window should NOT be visible on the component!");
+        Assert.assertFalse(isVisible(calendarOpenedId), "Calendar window should NOT be visible on the component!");
 
         writeStatus("Mouse click on calendar InputDate field");
         clickById(calendarInputDate);
 
-        Assert.assertTrue(isVisibleById(calendarOpenedId), "Calendar window should be visible on the component!");
+        Assert.assertTrue(isVisible(calendarOpenedId), "Calendar window should be visible on the component!");
 
         writeStatus("Mouse click outside calendar");
         clickById(outputPanel);
 
-        Assert.assertFalse(isVisibleById(calendarOpenedId), "Calendar window should NOT be visible on the component!");
+        Assert.assertFalse(isVisible(calendarOpenedId), "Calendar window should NOT be visible on the component!");
 
         writeStatus("Mouse click on calendar popup button");
         clickById(calendarPopupButton);
 
-        Assert.assertTrue(isVisibleById(calendarOpenedId), "Calendar window should be visible on the component!");
+        Assert.assertTrue(isVisible(calendarOpenedId), "Calendar window should be visible on the component!");
     }
 
-     @Test
+    @Test
     public void testSelectDateComponent(Template template) {
         renderPage(template);
 
@@ -460,10 +460,10 @@
         String calendarPopupButton = calendarCollapsedId + "Button";
         String outputPanel = containerId + "outputPanel";
 
-        Assert.assertFalse(isVisibleById(calendarOpenedId), "Calendar window should NOT be visible on the component!");
+        Assert.assertFalse(isVisible(calendarOpenedId), "Calendar window should NOT be visible on the component!");
         writeStatus("Mouse click on calendar popup button");
         clickById(calendarPopupButton);
-        Assert.assertTrue(isVisibleById(calendarOpenedId), "Calendar window should be visible on the component!");
+        Assert.assertTrue(isVisible(calendarOpenedId), "Calendar window should be visible on the component!");
 
         String inputDateString = getValueById(calendarInputDate);
         Date readDate = null;
@@ -489,7 +489,7 @@
         }
         Assert.assertEquals(readDate, newSelectedDate, "Date representation after selecting 15.May.2008 is wrong!");
 
-        Assert.assertFalse(isVisibleById(calendarOpenedId), "Calendar window should NOT be visible on the component!");
+        Assert.assertFalse(isVisible(calendarOpenedId), "Calendar window should NOT be visible on the component!");
     }
 
     @Test




More information about the richfaces-svn-commits mailing list