You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ml...@apache.org on 2013/04/23 11:04:37 UTC

git commit: fix compilation errors

Updated Branches:
  refs/heads/5.3 feee33d73 -> 73be2a542


fix compilation errors


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/73be2a54
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/73be2a54
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/73be2a54

Branch: refs/heads/5.3
Commit: 73be2a542700e456ae2033552cb996de0868752d
Parents: feee33d
Author: Massimo Lusetti <ml...@apache.org>
Authored: Tue Apr 23 11:04:21 2013 +0200
Committer: Massimo Lusetti <ml...@apache.org>
Committed: Tue Apr 23 11:04:21 2013 +0200

----------------------------------------------------------------------
 .../TapestryHibernateIntegrationTests.java         |   27 +++++++++-----
 1 files changed, 17 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/73be2a54/tapestry-hibernate/src/test/java/org/apache/tapestry5/hibernate/integration/TapestryHibernateIntegrationTests.java
----------------------------------------------------------------------
diff --git a/tapestry-hibernate/src/test/java/org/apache/tapestry5/hibernate/integration/TapestryHibernateIntegrationTests.java b/tapestry-hibernate/src/test/java/org/apache/tapestry5/hibernate/integration/TapestryHibernateIntegrationTests.java
index bdba2f4..d969052 100644
--- a/tapestry-hibernate/src/test/java/org/apache/tapestry5/hibernate/integration/TapestryHibernateIntegrationTests.java
+++ b/tapestry-hibernate/src/test/java/org/apache/tapestry5/hibernate/integration/TapestryHibernateIntegrationTests.java
@@ -15,17 +15,15 @@
 package org.apache.tapestry5.hibernate.integration;
 
 import org.apache.tapestry5.internal.hibernate.PersistedEntity;
-import org.apache.tapestry5.test.AbstractIntegrationTestSuite;
+import org.apache.tapestry5.test.SeleniumTestCase;
+import org.apache.tapestry5.test.TapestryTestConfiguration;
 import org.example.app0.entities.User;
 import org.testng.annotations.Test;
 
 @Test(sequential = true, groups = "integration")
-public class TapestryHibernateIntegrationTests extends AbstractIntegrationTestSuite
+@TapestryTestConfiguration(webAppFolder = "src/test/webapp")
+public class TapestryHibernateIntegrationTests extends SeleniumTestCase
 {
-    public TapestryHibernateIntegrationTests()
-    {
-        super("src/test/webapp");
-    }
 
     public void valueencode_all_entity_types() throws Exception
     {
@@ -103,7 +101,7 @@ public class TapestryHibernateIntegrationTests extends AbstractIntegrationTestSu
      */
     public void using_cached_with_form()
     {
-        start("Cached Form", "setup");
+        openLinks("Cached Form", "setup");
         assertTextSeries("name_%d", 0);
 
         type("name", "name1");
@@ -117,7 +115,7 @@ public class TapestryHibernateIntegrationTests extends AbstractIntegrationTestSu
 
     public void commit_after_on_component_methods()
     {
-        start("CommitAfter Demo");
+        openLinks("CommitAfter Demo");
 
         assertText("name", "Diane");
 
@@ -137,7 +135,7 @@ public class TapestryHibernateIntegrationTests extends AbstractIntegrationTestSu
 
     public void grid()
     {
-        start("Grid Demo", "setup");
+        openLinks("Grid Demo", "setup");
 
         clickAndWait("link=First Name");
 
@@ -150,7 +148,7 @@ public class TapestryHibernateIntegrationTests extends AbstractIntegrationTestSu
     
     public void hibernate_statistics()
     {
-    	open(BASE_URL + "hibernate/Statistics");
+    	open(getBaseURL() + "hibernate/Statistics");
     	
     	assertTextPresent("Hibernate Statistics");
     	
@@ -159,5 +157,14 @@ public class TapestryHibernateIntegrationTests extends AbstractIntegrationTestSu
     	assertTextPresent(User.class.getName());
     }
 
+	protected final void assertTextSeries(String idFormat, int startIndex, String... values)
+	{
+		for (int i = 0; i < values.length; i++)
+		{
+			String id = String.format(idFormat, startIndex + i);
+
+			assertText(id, values[i]);
+		}
+	}
 
 }