[seam-commits] Seam SVN: r11560 - branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Oct 8 10:46:11 EDT 2009


Author: mgencur at redhat.com
Date: 2009-10-08 10:46:11 -0400 (Thu, 08 Oct 2009)
New Revision: 11560

Modified:
   branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/VehicleTest.java
Log:
JBQA-2234 Fixed searchTest method

Modified: branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/VehicleTest.java
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/VehicleTest.java	2009-10-08 14:43:20 UTC (rev 11559)
+++ branches/community/Seam_2_2/src/test/ftest/seamgen/src/main/org/jboss/seam/test/functional/seamgen/VehicleTest.java	2009-10-08 14:46:11 UTC (rev 11560)
@@ -174,6 +174,16 @@
             "Page contains \"ERROR_TEXT\" which means that JBSEAM3866 error still exists");      
    }
 
+   @Test(groups = "generate-entitiesTest", dependsOnGroups = { "newProjectGroup" })
+   public void searchTest()
+   {
+      final String searchString = "9999999"; // should return two Audis
+
+      login();
+      browser.clickAndWait(VEHICLE_LINK);
+      assertEquals(search(searchString), 2, "Unexpected number of search results for " + searchString);
+   }
+   
    public int search(String pattern)
    {
       browser.type(SEARCH_REGISTRATION, pattern);



More information about the seam-commits mailing list