continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r478863 - /maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/SchedulesPageTest.java
Date Fri, 24 Nov 2006 12:57:43 GMT
Author: evenisse
Date: Fri Nov 24 04:57:42 2006
New Revision: 478863

URL: http://svn.apache.org/viewvc?view=rev&rev=478863
Log:
[CONTINUUM-1013] updated function invocations to reflect changes in maven-web-ui-tests
Submitted by: Marvin King

Modified:
    maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/SchedulesPageTest.java

Modified: maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/SchedulesPageTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/SchedulesPageTest.java?view=diff&rev=478863&r1=478862&r2=478863
==============================================================================
--- maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/SchedulesPageTest.java
(original)
+++ maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/SchedulesPageTest.java
Fri Nov 24 04:57:42 2006
@@ -134,13 +134,13 @@
         String[] columnValues = {SCHEDULE_NAME, SCHEDULE_DESCRIPTION, DELAY, cronSchedule,
MAXJOBEXECUTIONTIME};
 
         assertTrue( "Can not add schedule",
-                    getSelenium().isElementPresent( XPathExpressionUtil.matchTableRowOrderedValues(
columnValues ) ) );
+                    getSelenium().isElementPresent( XPathExpressionUtil.getTableRow( columnValues
) ) );
 
         // delete schedule after adding
         deleteSchedule( SCHEDULE_NAME );
 
         assertFalse( "Can not delete schedule",
-                     getSelenium().isElementPresent( XPathExpressionUtil.matchTableRowOrderedValues(
columnValues ) ) );
+                     getSelenium().isElementPresent( XPathExpressionUtil.getTableRow( columnValues
) ) );
     }
 
     public void testEditSchedule()
@@ -164,7 +164,7 @@
         String[] columnValues = {SCHEDULE_NAME, SCHEDULE_DESCRIPTION, DELAY, cronSchedule,
MAXJOBEXECUTIONTIME};
 
         // edit the schedule        
-        clickLinkWithXPath( XPathExpressionUtil.columnElementWithSiblingColumnValues( XPathExpressionUtil.ANCHOR,
5,
+        clickLinkWithXPath( XPathExpressionUtil.getColumnElement( XPathExpressionUtil.ANCHOR,
5,
                                                                                       "Edit",
columnValues ) );
 
         inputSchedule( SCHEDULE_NAME_EDIT + "modified", SCHEDULE_DESCRIPTION + "updated",
"2", "3", "4", "?", "6", "7",
@@ -176,10 +176,10 @@
             {SCHEDULE_NAME_EDIT + "modified", SCHEDULE_DESCRIPTION + "updated", "9", cronSchedule,
"8"};
 
         assertTrue( "Can not edit schedule", getSelenium().isElementPresent(
-            XPathExpressionUtil.matchTableRowOrderedValues( editedColumnValues ) ) );
+            XPathExpressionUtil.getTableRow( editedColumnValues ) ) );
 
         // check if the active state has been saved
-        clickLinkWithXPath( XPathExpressionUtil.columnElementWithSiblingColumnValues( XPathExpressionUtil.ANCHOR,
5,
+        clickLinkWithXPath( XPathExpressionUtil.getColumnElement( XPathExpressionUtil.ANCHOR,
5,
                                                                                       "Edit",
editedColumnValues ) );
 
         assertEquals( "Can disable the schedule", CHECKBOX_UNCHECK, getFieldValue( "active"
) );
@@ -247,7 +247,7 @@
             DEFAULT_MAXJOBEXECUTIONTIME};
 
         assertTrue( "Default schedule not found",
-                    getSelenium().isElementPresent( XPathExpressionUtil.matchTableRowOrderedValues(
columnValues ) ) );
+                    getSelenium().isElementPresent( XPathExpressionUtil.getTableRow( columnValues
) ) );
     }
 
     public void assertEditSchedulePage()
@@ -298,7 +298,7 @@
 
         String[] columnValues = {scheduleName};
 
-        clickLinkWithXPath( XPathExpressionUtil.columnElementWithSiblingColumnValues( XPathExpressionUtil.ANCHOR,
5,
+        clickLinkWithXPath( XPathExpressionUtil.getColumnElement( XPathExpressionUtil.ANCHOR,
5,
                                                                                       "Delete",
columnValues ) );
 
         // deletion confirmation page



Mime
View raw message