You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2006/10/13 19:47:14 UTC
svn commit: r463752 - in
/tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration:
IntegrationTests.java app1/pages/Countdown.java
Author: hlship
Date: Fri Oct 13 10:47:13 2006
New Revision: 463752
URL: http://svn.apache.org/viewvc?view=rev&rev=463752
Log:
Add an integration test for the ActionLink component.
Modified:
tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java
tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/app1/pages/Countdown.java
Modified: tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java?view=diff&rev=463752&r1=463751&r2=463752
==============================================================================
--- tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java (original)
+++ tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java Fri Oct 13 10:47:13 2006
@@ -30,13 +30,13 @@
* @author Howard M. Lewis Ship
*/
@Test(timeOut = 50000, sequential = true, groups =
-{ "integration" }, enabled=false)
+{ "integration" })
public class IntegrationTests extends Assert
{
private static final String BASE_URL = "http://localhost/";
- /** 5 seconds */
- public static final String PAGE_LOAD_TIMEOUT = "50000";
+ /** 60 seconds */
+ public static final String PAGE_LOAD_TIMEOUT = "600000";
private Selenium _selenium;
@@ -212,5 +212,22 @@
assertTrue(body.contains("org.xml.sax.SAXParseException"));
assertTrue(body
.contains("XML document structures must start and end within the same entity."));
+ }
+
+ @Test
+ public void app1_simple_component_event()
+ {
+ _selenium.open(BASE_URL);
+
+ clickAndWait("link=Action Page");
+
+ for (int i = 2; i < 5; i++)
+ {
+ clickAndWait("link=" + i);
+
+ String body = _selenium.getBodyText();
+
+ assertTrue(body.contains("You chose: " + i));
+ }
}
}
Modified: tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/app1/pages/Countdown.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/app1/pages/Countdown.java?view=diff&rev=463752&r1=463751&r2=463752
==============================================================================
--- tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/app1/pages/Countdown.java (original)
+++ tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/app1/pages/Countdown.java Fri Oct 13 10:47:13 2006
@@ -25,7 +25,7 @@
public class Countdown
{
@Component(parameters =
- { "start=10h", "end=1", "value=countValue" })
+ { "start=10", "end=1", "value=countValue" })
private Count _count;
private int _countValue;