tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r1087494 [1/2] - in /tapestry/tapestry5/trunk: tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ tapestry-core/src/test/java/org/apache/tapestry5/integration/ tapestry-core/src/test/java/org/apache/tapestry5/integration/a...
Date Thu, 31 Mar 2011 23:16:02 GMT
Author: hlship
Date: Thu Mar 31 23:16:01 2011
New Revision: 1087494

URL: http://svn.apache.org/viewvc?rev=1087494&view=rev
Log:
TAP5-1492: New features for SeleniumTestCase

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ActivationRequestParameterTests.groovy
    tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AssetDigestTests.groovy
    tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ClassTransformationTests.groovy
    tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MissingPageActivationContext.groovy
    tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageActivationContextAnnotationTests.groovy
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/TapestryCoreTestCase.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AssetTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CacheTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FailureTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GeneralComponentTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GridTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/LoopTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/MixinTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/PaletteTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/RequestParameterTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app3/AdditionalIntegrationTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app4/ImmediateModeTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app6/CutomAppPackageIntegrationTests.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/linktrans/LinkTransformerIntegrationTest.java
    tapestry/tapestry5/trunk/tapestry-test/src/main/java/org/apache/tapestry5/test/Jetty7Runner.java
    tapestry/tapestry5/trunk/tapestry-test/src/main/java/org/apache/tapestry5/test/SeleniumTestCase.java
    tapestry/tapestry5/trunk/tapestry-test/src/main/java/org/apache/tapestry5/test/ServletContainerRunner.java
    tapestry/tapestry5/trunk/tapestry-test/src/main/java/org/apache/tapestry5/test/Tomcat6Runner.java

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ActivationRequestParameterTests.groovy
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ActivationRequestParameterTests.groovy?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ActivationRequestParameterTests.groovy (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ActivationRequestParameterTests.groovy Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2010 The Apache Software Foundation
+// Copyright 2010, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ class ActivationRequestParameterTests ex
 {
     @Test
     void basic_links() {
-        clickThru "ActivationRequestParameter Annotation Demo"
+        openLinks "ActivationRequestParameter Annotation Demo"
         
         assertText "click-count", ""
         assertText "click-count-set", "false"
@@ -43,7 +43,7 @@ class ActivationRequestParameterTests ex
     @Test
     public void form_components_do_not_conflict_with_mapped_field_names() {
         
-        clickThru "ActivationRequestParameter Annotation Demo"
+        openLinks "ActivationRequestParameter Annotation Demo"
         
         clickAndWait "link=increment count"
         

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AssetDigestTests.groovy
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AssetDigestTests.groovy?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AssetDigestTests.groovy (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AssetDigestTests.groovy Thu Mar 31 23:16:01 2011
@@ -37,7 +37,7 @@ class AssetDigestTests extends TapestryC
 
     @Test
     void protected_asset() {
-        clickThru "AssetDemo"
+        openLinks "AssetDemo"
 
         def path = getText("propurl").substring(1) // Strip leading slash
 
@@ -56,7 +56,7 @@ class AssetDigestTests extends TapestryC
 
     @Test
     void invalid_digest() {
-        clickThru "AssetDemo"
+        openLinks "AssetDemo"
 
         def path = getText("propurl").substring(1)
 
@@ -66,7 +66,7 @@ class AssetDigestTests extends TapestryC
 
     @Test
     void missing_digest() {
-        clickThru "AssetDemo"
+        openLinks "AssetDemo"
 
         def path = getText("propurl").substring(1)
 

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ClassTransformationTests.groovy
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ClassTransformationTests.groovy?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ClassTransformationTests.groovy (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/ClassTransformationTests.groovy Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2010 The Apache Software Foundation
+// Copyright 2010, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ class ClassTransformationTests extends T
     /** TAP5-1222 */
     @Test
     void access_to_public_field_of_data_object_with_name_that_conflicts_with_component_field() {
-        clickThru "Public Field Access Demo"
+        openLinks "Public Field Access Demo"
         
         assertText "message", "success"
     }

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MissingPageActivationContext.groovy
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MissingPageActivationContext.groovy?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MissingPageActivationContext.groovy (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MissingPageActivationContext.groovy Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2010 The Apache Software Foundation
+// Copyright 2010, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ class MissingPageActivationContext exten
 {
     @Test
     void page_activation_context_omitted_from_url() {
-        clickThru "Missing page activation context"
+        openLinks "Missing page activation context"
         
         // Back to Index page, with alert message.
         

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageActivationContextAnnotationTests.groovy
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageActivationContextAnnotationTests.groovy?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageActivationContextAnnotationTests.groovy (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/PageActivationContextAnnotationTests.groovy Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2010 The Apache Software Foundation
+// Copyright 2010, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ class PageActivationContextAnnotationTes
     @Test
     void pac_fields_set_before_activate_event_handler_method_invoked()
     {
-        clickThru "PageActivationContext Demo"
+        openLinks "PageActivationContext Demo"
         
         assertText "count", ""
         assertText "count-set", "false"

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/TapestryCoreTestCase.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/TapestryCoreTestCase.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/TapestryCoreTestCase.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/TapestryCoreTestCase.java Thu Mar 31 23:16:01 2011
@@ -18,23 +18,6 @@ import org.apache.tapestry5.test.Seleniu
 
 public abstract class TapestryCoreTestCase extends SeleniumTestCase
 {
-    public static final String SUBMIT = "//input[@type='submit']";
-
-    /**
-     * Opens the base URL, then clicks through a series of links to get to a desired application
-     * state.
-     */
-    protected final void clickThru(String... linkText)
-    {
-        openBaseURL();
-
-        for (String text : linkText)
-        {
-            click("link=" + text);
-            waitForPageToLoad();
-        }
-    }
-
     protected final void assertTextSeries(String idFormat, int startIndex, String... values)
     {
         for (int i = 0; i < values.length; i++)
@@ -45,40 +28,6 @@ public abstract class TapestryCoreTestCa
         }
     }
 
-    protected final void sleep(long millis)
-    {
-        try
-        {
-            Thread.sleep(millis);
-        }
-        catch (InterruptedException ex)
-        {
-            // Ignore.
-        }
-    }
-
-    protected void waitForCSSSelectedElementToAppear(String cssRule)
-    {
-        String condition = String.format("window.$$(\"%s\").size() > 0", cssRule);
-
-        waitForCondition(condition, PAGE_LOAD_TIMEOUT);
-    }
-
-    protected final void waitForElementToAppear(String elementId)
-    {
-
-        String condition = String.format("window.$(\"%s\")", elementId);
-
-        waitForCondition(condition, PAGE_LOAD_TIMEOUT);
-    }
-
-    protected final void waitForElementToDisappear(String elementId)
-    {
-        String condition = String.format("window.$(\"%s\").hide()", elementId);
-
-        waitForCondition(condition, PAGE_LOAD_TIMEOUT);
-    }
-
     protected final void assertBubbleMessage(String fieldId, String expected)
     {
         String popupId = fieldId + ":errorpopup";

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2009, 2010 The Apache Software Foundation
+// Copyright 2009, 2010, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ public class AjaxTests extends TapestryC
     @Test
     public void autocomplete_mixin()
     {
-        clickThru("Autocomplete Mixin Demo");
+        openLinks("Autocomplete Mixin Demo");
 
         // And that's as far as we can go currently, because
         // of limitations in Selenium 0.8.3 and bugs in Selenium 0.9.2.
@@ -34,7 +34,7 @@ public class AjaxTests extends TapestryC
     @Test
     public void form_fragment()
     {
-        clickThru("Form Fragment Demo", "Clear");
+        openLinks("Form Fragment Demo", "Clear");
 
         type("name", "Fred");
 
@@ -83,7 +83,7 @@ public class AjaxTests extends TapestryC
     @Test
     public void form_injector()
     {
-        clickThru("FormInjector Demo");
+        openLinks("FormInjector Demo");
 
         assertText("sum", "0.0");
 
@@ -114,7 +114,7 @@ public class AjaxTests extends TapestryC
     @Test
     public void ajax_server_side_exception()
     {
-        clickThru("Zone Demo");
+        openLinks("Zone Demo");
 
         click("link=Failure on the server side");
 
@@ -131,7 +131,7 @@ public class AjaxTests extends TapestryC
     @Test
     public void slow_ajax_load_warning()
     {
-        clickThru("Slow Ajax Demo");
+        openLinks("Slow Ajax Demo");
 
         // ActionLink
 
@@ -164,7 +164,7 @@ public class AjaxTests extends TapestryC
     @Test
     public void progressive_display()
     {
-        clickThru("ProgressiveDisplay Demo");
+        openLinks("ProgressiveDisplay Demo");
 
         waitForElementToAppear("content1");
         assertText("content1", "Progressive Display content #1.");

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AssetTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AssetTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AssetTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AssetTests.java Thu Mar 31 23:16:01 2011
@@ -41,7 +41,7 @@ public class AssetTests extends Tapestry
     @Test(dataProvider = "asset_data")
     public void assets(String id, String localPath) throws Exception
     {
-        clickThru("AssetDemo");
+        openLinks("AssetDemo");
 
         // Test for https://issues.apache.org/jira/browse/TAPESTRY-1935
 

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/BeanEditorTests.java Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2009 The Apache Software Foundation
+// Copyright 2009, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ public class BeanEditorTests extends Tap
     @Test
     public void bean_editor()
     {
-        clickThru("BeanEditor Demo", "Clear Data");
+        openLinks("BeanEditor Demo", "Clear Data");
 
         clickAndWait(SUBMIT);
 
@@ -82,7 +82,7 @@ public class BeanEditorTests extends Tap
     @Test
     public void bean_editor_property_reorder_remove()
     {
-        clickThru("BeanEdit Remove/Reorder", "Clear Data");
+        openLinks("BeanEdit Remove/Reorder", "Clear Data");
 
         // Looks like a bug in Selenium; we can see //label[1] but not
         // //label[2].
@@ -102,7 +102,7 @@ public class BeanEditorTests extends Tap
     @Test
     public void multiple_beaneditor_components()
     {
-        clickThru("MultiBeanEdit Demo", "Clear Data");
+        openLinks("MultiBeanEdit Demo", "Clear Data");
 
         type("firstName", "Howard");
         type("lastName", "Lewis Ship");
@@ -120,7 +120,7 @@ public class BeanEditorTests extends Tap
     @Test
     public void date_field_inside_bean_editor()
     {
-        clickThru("BeanEditor / Date Demo", "clear");
+        openLinks("BeanEditor / Date Demo", "clear");
 
         type("name", "Howard Lewis Ship");
         type("date", "12/24/1966");
@@ -140,7 +140,7 @@ public class BeanEditorTests extends Tap
     @Test
     public void bean_editor_overrides()
     {
-        clickThru("BeanEditor Override", "Clear Data");
+        openLinks("BeanEditor Override", "Clear Data");
 
         assertTextPresent("[FirstName Property Editor Override]");
     }
@@ -151,7 +151,7 @@ public class BeanEditorTests extends Tap
     @Test
     public void null_fields_and_bean_editor()
     {
-        clickThru("Number BeanEditor Demo");
+        openLinks("Number BeanEditor Demo");
 
         clickAndWait(SUBMIT);
 
@@ -171,7 +171,7 @@ public class BeanEditorTests extends Tap
     @Test
     public void nested_bean_editor_and_bean_display()
     {
-        clickThru("Nested BeanEditor");
+        openLinks("Nested BeanEditor");
 
         type("name", "Parent");
         type("age", "60");
@@ -194,7 +194,7 @@ public class BeanEditorTests extends Tap
     @Test
     public void bean_editor_pushes_bean_edit_context()
     {
-        clickThru("BeanEditor BeanEditContext");
+        openLinks("BeanEditor BeanEditContext");
 
         assertTextPresent("Bean class from context is: " + RegistrationData.class.getName());
     }
@@ -202,7 +202,7 @@ public class BeanEditorTests extends Tap
     /** TAP5-991 */
     public void bean_display_enum_value_from_messages()
     {
-        start("BeanDisplay Enum Demo");
+        openLinks("BeanDisplay Enum Demo");
         
         assertText("//dd[2]", "Ultra Important");
     }

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CacheTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CacheTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CacheTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CacheTests.java Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2010 The Apache Software Foundation
+// Copyright 2010, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ public class CacheTests extends Tapestry
     @Test
     public void cached_properties_cleared_at_end_of_request()
     {
-        clickThru("Clean Cache Demo");
+        openLinks("Clean Cache Demo");
 
         String time1_1 = getText("time1");
         String time1_2 = getText("time1");
@@ -52,7 +52,7 @@ public class CacheTests extends Tapestry
     @Test
     public void void_method_is_error_with_cached()
     {
-        clickThru("@Cached on void method");
+        openLinks("@Cached on void method");
 
         assertTextPresent("Method org.apache.tapestry5.integration.app1.pages.VoidMethodWithCached.invalidMethod()",
                 "may not be used with @Cached because it returns void.");
@@ -61,7 +61,7 @@ public class CacheTests extends Tapestry
     @Test
     public void parameters_not_allowed_with_cached_method()
     {
-        clickThru("@Cached on method with parameters");
+        openLinks("@Cached on method with parameters");
 
         assertTextPresent(
                 "Method org.apache.tapestry5.integration.app1.pages.ParamsMethodWithCached.invalidMethod(java.lang.String)",

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java Thu Mar 31 23:16:01 2011
@@ -40,7 +40,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void flash_persistence()
     {
-        clickThru("FlashDemo");
+        openLinks("FlashDemo");
 
         assertTextPresent("[]");
 
@@ -56,7 +56,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void component_parameter_default_from_method() throws Exception
     {
-        clickThru("ParameterDefault");
+        openLinks("ParameterDefault");
 
         assertTextPresent("Echo component default: [ParameterDefault:echo]");
     }
@@ -64,7 +64,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void embedded_components()
     {
-        clickThru("Countdown Page");
+        openLinks("Countdown Page");
 
         assertTextPresent("regexp:\\s+5\\s+4\\s+3\\s+2\\s+1\\s+");
 
@@ -78,7 +78,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void block_rendering() throws Exception
     {
-        clickThru("BlockDemo");
+        openLinks("BlockDemo");
 
         assertTextPresent("[]");
 
@@ -100,7 +100,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void environmental()
     {
-        clickThru("Environmental Annotation Usage");
+        openLinks("Environmental Annotation Usage");
 
         assertSourcePresent("[<strong>A message provided by the RenderableProvider component.</strong>]");
     }
@@ -109,7 +109,7 @@ public class CoreBehaviorsTests extends 
     public void exception_report()
     {
         // mismatched tag.
-        clickThru("BadTemplate Page");
+        openLinks("BadTemplate Page");
 
         assertTextPresent("org.apache.tapestry5.ioc.internal.OperationException",
                 "Failure parsing template classpath:org/apache/tapestry5/integration/app1/pages/BadTemplate.tml",
@@ -121,7 +121,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void expansion()
     {
-        clickThru("Expansion Page");
+        openLinks("Expansion Page");
 
         assertTextPresent("[value provided by a template expansion]");
     }
@@ -136,7 +136,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void inject_container_failure() throws Exception
     {
-        clickThru("InjectContainerMismatch");
+        openLinks("InjectContainerMismatch");
 
         // And exception message:
 
@@ -146,7 +146,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void inject_component_failure() throws Exception
     {
-        clickThru("InjectComponentMismatch");
+        openLinks("InjectComponentMismatch");
 
         assertTextPresent("Unable to inject component 'form' into field form of component InjectComponentMismatch. Class org.apache.tapestry5.corelib.components.BeanEditForm is not assignable to a field of type org.apache.tapestry5.corelib.components.Form.");
     }
@@ -154,7 +154,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void injection() throws Exception
     {
-        clickThru("Inject Demo");
+        openLinks("Inject Demo");
 
         // is a test for a named @Inject:
         assertTextPresent("<Proxy for Request(org.apache.tapestry5.services.Request)>");
@@ -173,11 +173,11 @@ public class CoreBehaviorsTests extends 
 
         assertText("viaInjectService", "1722 tracks in music library");
     }
-    
+
     @Test
     public void atinjection() throws Exception
     {
-        clickThru("@javax.inject.Inject Demo");
+        openLinks("@javax.inject.Inject Demo");
 
         // is a test for a named @Inject:
         assertTextPresent("<Proxy for Request(org.apache.tapestry5.services.Request)>");
@@ -202,7 +202,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void instance_mixin()
     {
-        clickThru("InstanceMixin");
+        openLinks("InstanceMixin");
 
         final String[] dates =
         { "Jun 13, 1999", "Jul 15, 2001", "Dec 4, 2005" };
@@ -226,7 +226,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void localization()
     {
-        clickThru("Localization");
+        openLinks("Localization");
 
         assertTextPresent("Via injected Messages property: [Accessed via injected Messages]");
         assertTextPresent("Via message: binding prefix: [Accessed via message: binding prefix]");
@@ -241,7 +241,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void page_injection() throws Exception
     {
-        clickThru("Inject Demo");
+        openLinks("Inject Demo");
 
         clickAndWait("link=Fred");
 
@@ -260,7 +260,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void passivate_activate() throws Exception
     {
-        clickThru("NumberSelect");
+        openLinks("NumberSelect");
 
         clickAndWait("link=5");
 
@@ -270,7 +270,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void render_phase_method_returns_a_component() throws Exception
     {
-        clickThru("RenderComponentDemo");
+        openLinks("RenderComponentDemo");
 
         assertText("//span[@id='container']", "[]");
 
@@ -294,7 +294,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void render_phase_order()
     {
-        clickThru("RenderPhaseOrder");
+        openLinks("RenderPhaseOrder");
 
         assertTextPresent("[BEGIN-TRACER-MIXIN BEGIN-ABSTRACT-TRACER BEGIN-TRACER BODY AFTER-TRACER AFTER-ABSTRACT-TRACER AFTER-TRACER-MIXIN]");
     }
@@ -304,7 +304,7 @@ public class CoreBehaviorsTests extends 
     {
         final String YOU_CHOSE = "You chose: ";
 
-        clickThru("Action Page");
+        openLinks("Action Page");
 
         assertFalse(isTextPresent(YOU_CHOSE));
 
@@ -319,7 +319,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void subclass_inherits_parent_template()
     {
-        clickThru("ExpansionSubclass");
+        openLinks("ExpansionSubclass");
 
         assertTextPresent("[value provided, in the subclass, via a template expansion]");
     }
@@ -327,7 +327,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void template_overridden()
     {
-        clickThru("Template Overridden by Class Page");
+        openLinks("Template Overridden by Class Page");
 
         assertTextPresent("Output: ClassValue");
     }
@@ -335,7 +335,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void pageloaded_lifecycle_method_invoked()
     {
-        clickThru("PageLoaded Demo");
+        openLinks("PageLoaded Demo");
 
         assertTextPresent("[pageLoaded() was invoked.]");
     }
@@ -343,7 +343,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void navigation_response_from_page_activate() throws Exception
     {
-        clickThru("Protected Page");
+        openLinks("Protected Page");
 
         assertText("pagetitle", "Security Alert");
 
@@ -355,7 +355,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void mixed_page_activation_context_and_component_context()
     {
-        clickThru("Kicker");
+        openLinks("Kicker");
 
         clickAndWait("link=kick target");
 
@@ -371,7 +371,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void page_link_with_explicit_empty_context()
     {
-        clickThru("Kicker");
+        openLinks("Kicker");
 
         clickAndWait("link=kick target");
 
@@ -385,7 +385,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void page_link_with_explicit_activation_context()
     {
-        clickThru("PageLink Context Demo", "no context");
+        openLinks("PageLink Context Demo", "no context");
 
         assertTextPresent("No activation context.");
 
@@ -425,7 +425,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void recursive_components_are_identified_as_errors()
     {
-        clickThru("Recursive Demo");
+        openLinks("Recursive Demo");
 
         assertTextPresent(
                 "An unexpected application exception has occurred.",
@@ -436,7 +436,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void render_phase_method_may_return_renderable()
     {
-        clickThru("Renderable Demo");
+        openLinks("Renderable Demo");
 
         assertTextPresent("Renderable Demo", "[This proves it works.]");
     }
@@ -446,7 +446,7 @@ public class CoreBehaviorsTests extends 
     {
         String clear = "link=clear";
 
-        clickThru("EventHandler Demo");
+        openLinks("EventHandler Demo");
 
         clickAndWait(clear);
 
@@ -478,7 +478,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void inherited_bindings()
     {
-        clickThru("Inherited Bindings Demo");
+        openLinks("Inherited Bindings Demo");
 
         assertTextPresent("Bound: [ value: the-bound-value, bound: true ]", "Unbound: [ value: null, bound: false ]");
     }
@@ -486,7 +486,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void client_persistence()
     {
-        clickThru("Client Persistence Demo");
+        openLinks("Client Persistence Demo");
         // can't assume session won't exist because other tests use form
         // components w/ defaults, which means
         // session creation to store the ValidationTracker. So we explicitly
@@ -503,7 +503,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void attribute_expansions()
     {
-        clickThru("Attribute Expansions Demo");
+        openLinks("Attribute Expansions Demo");
 
         assertAttribute("//div[@id='mixed-expansion']/@style", "color: blue;");
         assertAttribute("//div[@id='single']/@class", "red");
@@ -553,7 +553,7 @@ public class CoreBehaviorsTests extends 
         assertTextPresent("Success!");
         goBack();
         waitForPageToLoad();
-        
+
         clickAndWait("link=stream page content");
         assertTextPresent("Tapestry 5 Integration Application 1");
         goBack();
@@ -579,17 +579,15 @@ public class CoreBehaviorsTests extends 
                 "context:ReturnTypes.tml, line 50");
         goBack();
         waitForPageToLoad();
-        
+
         clickAndWait("link=http error");
-        assertTextPresent(
-                "HTTP ERROR 410",
-                "Oups! Resource disappeared!");
+        assertTextPresent("HTTP ERROR 410", "Oups! Resource disappeared!");
     }
 
     @Test
     public void missing_template_for_page()
     {
-        clickThru("Missing Template Demo");
+        openLinks("Missing Template Demo");
 
         assertTextPresent("Page MissingTemplate did not generate any markup when rendered. This could be because its template file could not be located, or because a render phase method in the page prevented rendering.");
     }
@@ -622,7 +620,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void components_passed_as_parameters() throws Exception
     {
-        clickThru("ComponentParameter Demo");
+        openLinks("ComponentParameter Demo");
 
         // This component is inside a block, and is only rendered because it is
         // passed as a parameter, of type ActionLink,
@@ -639,7 +637,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void inherit_informals() throws Exception
     {
-        clickThru("Inherit Informal Parameters Demo");
+        openLinks("Inherit Informal Parameters Demo");
 
         assertAttribute("//span[@id='target']/@class", "inherit");
     }
@@ -650,7 +648,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void var_binding()
     {
-        clickThru("Var Binding Demo");
+        openLinks("Var Binding Demo");
 
         assertTextSeries("//li[%d]", 1, "1", "2", "3");
     }
@@ -661,7 +659,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void component_event_errors()
     {
-        clickThru("Exception Event Demo", "enable", "force invalid activation context");
+        openLinks("Exception Event Demo", "enable", "force invalid activation context");
 
         assertTextPresent("Exception: Exception in method org.apache.tapestry5.integration.app1.pages.ExceptionEventDemo.onActivate(float)");
 
@@ -686,7 +684,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void generic_page_type()
     {
-        clickThru("Generic Page Class Demo");
+        openLinks("Generic Page Class Demo");
 
         assertTextPresent("Editor for org.apache.tapestry5.integration.app1.data.Track");
 
@@ -699,7 +697,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void render_queue_exception()
     {
-        clickThru("Render Error Demo");
+        openLinks("Render Error Demo");
 
         assertTextPresent("An unexpected application exception has occurred");
 
@@ -716,7 +714,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void primitive_array_as_parameter_type()
     {
-        clickThru("Primitive Array Parameter Demo");
+        openLinks("Primitive Array Parameter Demo");
 
         assertSourcePresent("<ul><li>1</li><li>3</li><li>5</li><li>7</li><li>9</li></ul>");
     }
@@ -727,7 +725,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void ignored_paths_filter()
     {
-        clickThru("Unreachable Page");
+        openLinks("Unreachable Page");
 
         // This message changes from one release of Jetty to the next sometimes
         assertText("//title", "Error 404 Not Found");
@@ -739,7 +737,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void render_phase_methods_may_throw_checked_exceptions()
     {
-        clickThru("Render Phase Method Exception Demo");
+        openLinks("Render Phase Method Exception Demo");
 
         assertTextPresent("Render queue error in BeginRender[RenderPhaseMethodExceptionDemo]: java.sql.SQLException: Simulated JDBC exception while rendering.");
     }
@@ -750,7 +748,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void boolean_properties_can_use_get_or_is_as_method_name_prefix()
     {
-        clickThru("Boolean Property Demo", "clear");
+        openLinks("Boolean Property Demo", "clear");
 
         assertText("usingGet", "false");
         assertText("usingIs", "false");
@@ -767,7 +765,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void discard_persistent_field_changes()
     {
-        clickThru("Persistent Demo");
+        openLinks("Persistent Demo");
 
         assertText("message", "");
 
@@ -792,7 +790,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void nested_page_names()
     {
-        clickThru("Music Page", "2");
+        openLinks("Music Page", "2");
 
         assertText("activePageName", "Music");
 
@@ -807,7 +805,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void generated_activation_context_handlers()
     {
-        clickThru("Music Page", "69");
+        openLinks("Music Page", "69");
 
         assertText("activePageName", "Music");
 
@@ -826,7 +824,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void list_as_event_context()
     {
-        clickThru("List Event Context Demo");
+        openLinks("List Event Context Demo");
 
         assertTextSeries("//ul[@id='eventcontext']/li[%d]", 1, "1", "2", "3");
     }
@@ -837,7 +835,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void protected_field_in_page_class()
     {
-        clickThru("Protected Fields Demo", "Trigger the Exception");
+        openLinks("Protected Fields Demo", "Trigger the Exception");
 
         assertTextPresent(
                 "An unexpected application exception has occurred.",
@@ -850,7 +848,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void noclassdeffound_exception_is_linked_to_underlying_cause()
     {
-        clickThru("Class Transformation Exception Demo");
+        openLinks("Class Transformation Exception Demo");
 
         assertTextPresent("Class org.apache.tapestry5.integration.app1.pages.Datum contains field(s) (_value) that are not private. You should change these fields to private, and add accessor methods if needed.");
     }
@@ -858,7 +856,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void method_advice()
     {
-        clickThru("Method Advice Demo");
+        openLinks("Method Advice Demo");
 
         // @ReverseStrings intercepted and reversed the result:
         assertText("message", "!olleH");
@@ -881,7 +879,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void component_classes_may_not_be_directly_instantiated()
     {
-        clickThru("Instantiate Page");
+        openLinks("Instantiate Page");
 
         assertTextPresent("Component class org.apache.tapestry5.integration.app1.pages.Music may not be instantiated directly.");
     }
@@ -892,7 +890,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void field_annotation_conflict()
     {
-        clickThru("Field Annotation Conflict");
+        openLinks("Field Annotation Conflict");
 
         assertTextPresent("Field flashDemo of class org.apache.tapestry5.integration.app1.pages.FieldAnnotationConflict is already claimed by @org.apache.tapestry5.annotations.InjectPage and can not be claimed by @org.apache.tapestry5.annotations.Parameter.");
     }
@@ -903,7 +901,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void access_to_informal_parameters()
     {
-        clickThru("Informal Parameters Demo");
+        openLinks("Informal Parameters Demo");
 
         assertTextSeries("//dl[@id='informals']/dt[%d]", 1, "barney", "fred", "pageName");
         assertTextSeries("//dl[@id='informals']/dd[%d]", 1, "rubble", "flintstone", "InformalParametersDemo");
@@ -915,7 +913,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void cached_exception_for_loading_failed_page()
     {
-        clickThru("Failed Field Injection Demo");
+        openLinks("Failed Field Injection Demo");
 
         assertTextPresent("Error obtaining injected value for field org.apache.tapestry5.integration.app1.pages.FailedInjectDemo.buffer: No service implements the interface java.lang.StringBuffer.");
 
@@ -934,7 +932,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void create_page_link_via_page_class()
     {
-        clickThru("PageLink via Class Demo");
+        openLinks("PageLink via Class Demo");
 
         assertTextPresent("Demonstrates the use of the @Inject annotation.");
     }
@@ -945,7 +943,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void exception_when_attaching_page()
     {
-        clickThru("Page Attach Failure");
+        openLinks("Page Attach Failure");
 
         assertTextPresent("Failure inside pageAttached().");
     }
@@ -956,7 +954,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void default_method_for_parameter_returns_primitive()
     {
-        clickThru("Primitive Default Demo");
+        openLinks("Primitive Default Demo");
 
         assertText("value", "99");
     }
@@ -967,11 +965,11 @@ public class CoreBehaviorsTests extends 
     @Test
     public void unhandled_client_events_throw_exceptions()
     {
-        clickThru("Unhandled Event Demo", "traditional");
+        openLinks("Unhandled Event Demo", "traditional");
 
         assertTextPresent("Request event 'action' (on component UnhandledEventDemo:traditional) was not handled; you must provide a matching event handler method in the component or in one of its containers.");
 
-        clickThru("Unhandled Event Demo");
+        openLinks("Unhandled Event Demo");
 
         click("link=ajax");
 
@@ -986,7 +984,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void component_in_class_but_not_template_is_an_exception()
     {
-        clickThru("Components Not In Template Demo");
+        openLinks("Components Not In Template Demo");
 
         assertTextPresent("Embedded component(s) form are defined within component class org.apache.tapestry5.integration.app1.pages.ComponentsNotInTemplateDemo");
     }
@@ -997,7 +995,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void conflict_between_property_annotation_and_existing_method()
     {
-        clickThru("Getter Method Already Exists");
+        openLinks("Getter Method Already Exists");
 
         assertTextPresent("Unable to create new method public java.lang.String getName() as it already exists in class org.apache.tapestry5.integration.app1.pages.GetterMethodAlreadyExists.");
     }
@@ -1008,7 +1006,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void duplicate_ids_highlight_both_locations()
     {
-        clickThru("Duplicate IDs");
+        openLinks("Duplicate IDs");
 
         assertTextPresent("Component DuplicateIds already contains a child component with id 'index'. Embedded component ids must be unique (excluding case, which is ignored).");
         assertTextPresent("Component DuplicateIds declared original child component with id 'index' in DuplicateIds.tml on line 6.");
@@ -1020,7 +1018,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void published_parameters()
     {
-        clickThru("Publish Parameters Demo");
+        openLinks("Publish Parameters Demo");
 
         assertText("p3-where", "PublishParametersDemo:publish1.publish2.publish3");
         assertText("p3-number", "6");
@@ -1033,7 +1031,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void conflicting_published_parameter_names_within_same_component()
     {
-        clickThru("Duplicate Published Parameter Name");
+        openLinks("Duplicate Published Parameter Name");
 
         assertTextPresent("Parameter 'value' of embedded component 'passwordfield' can not be published as a parameter of "
                 + "component org.apache.tapestry5.integration.app1.components.BadPublishDuplicate, "
@@ -1043,7 +1041,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void embedded_type_conflict()
     {
-        clickThru("Embedded Component Type Conflict");
+        openLinks("Embedded Component Type Conflict");
 
         assertTextPresent("Embedded component 'input' provides a type attribute in the template ('passwordfield') "
                 + "as well as in the component class ('textfield'). You should not provide a type attribute in "
@@ -1053,7 +1051,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void publish_unknown_parameter()
     {
-        clickThru("Publish Unknown Parameter Demo");
+        openLinks("Publish Unknown Parameter Demo");
 
         assertTextPresent("Parameter 'xyzzyx' of component org.apache.tapestry5.integration.app1.components.BadPublishUnknown "
                 + "is improperly published from embedded component 'publish1' (where it does not exist). "
@@ -1063,7 +1061,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void unknown_mixin_id()
     {
-        clickThru("Bad Mixin Id Demo");
+        openLinks("Bad Mixin Id Demo");
 
         assertTextPresent("Mixin id for parameter 'unknownmixinid.foo' not found. Attached mixins: RenderInformals.");
     }
@@ -1071,7 +1069,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void duplicate_mixin()
     {
-        clickThru("Duplicate Mixin Demo");
+        openLinks("Duplicate Mixin Demo");
 
         assertTextPresent("Failure creating embedded component 'form' of "
                 + "org.apache.tapestry5.integration.app1.pages.DupeMixinDemo: "
@@ -1081,7 +1079,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void unsupported_informal_block_parameter()
     {
-        clickThru("Unsupported Parameter Block Demo");
+        openLinks("Unsupported Parameter Block Demo");
 
         assertTextPresent(
                 "Exception assembling root component of page UnsupportedParameterBlockDemo:",
@@ -1094,7 +1092,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void component_extends_parent_template()
     {
-        clickThru("Template Override Demo");
+        openLinks("Template Override Demo");
 
         // From the parent template (could be overridden, but is not).
 
@@ -1108,7 +1106,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void extend_without_base_template()
     {
-        clickThru("Invalid Template Extend Demo");
+        openLinks("Invalid Template Extend Demo");
 
         assertTextPresent("Component org.apache.tapestry5.integration.app1.pages.InvalidTemplateExtend uses an extension template, but does not have a parent component.");
     }
@@ -1119,7 +1117,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void abstract_component_class()
     {
-        clickThru("Abstract Component Demo");
+        openLinks("Abstract Component Demo");
 
         assertTextPresent(
                 "java.lang.RuntimeException",
@@ -1129,7 +1127,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void multi_level_parameter_inheritance()
     {
-        clickThru("Multi-Level Inherit Demo");
+        openLinks("Multi-Level Inherit Demo");
 
         assertText("prop.middle.bottom", "bound value");
         assertText("literal.middle.bottom", "some text");
@@ -1138,7 +1136,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void bindparameter()
     {
-        clickThru("BindParameter mixin annotation");
+        openLinks("BindParameter mixin annotation");
         // implicit parameter name
         assertEchoMixins("testmixin", "mypropertyvalue", 0, -1, -1, 1, true);
         assertText("mypropertyoutput", "mypropertyvalue");
@@ -1203,7 +1201,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void missing_componentclass()
     {
-        clickThru("Missing Component Class Exception");
+        openLinks("Missing Component Class Exception");
         assertTextPresent(
                 "An unexpected application exception has occurred",
                 "Failure creating embedded component 'componentwithnotype' of org.apache.tapestry5.integration.app1.pages.MissingComponentClassException: You must specify the type via t:type, the element, or @Component");
@@ -1212,7 +1210,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void session_attribute()
     {
-        clickThru("SessionAttribute Demo");
+        openLinks("SessionAttribute Demo");
 
         assertTextPresent("Foo");
         assertTextPresent("Bar");
@@ -1229,7 +1227,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void value_encoder_via_type_coercer()
     {
-        clickThru("Magic ValueEncoder Demo");
+        openLinks("Magic ValueEncoder Demo");
 
         select("number", "25");
 
@@ -1251,7 +1249,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void create_action_link_while_not_rendering()
     {
-        clickThru("Action via Link Demo", "via explicit Link creation");
+        openLinks("Action via Link Demo", "via explicit Link creation");
 
         assertText("message", "from getActionURL()");
     }
@@ -1262,7 +1260,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void cached()
     {
-        clickThru("Cached Annotation");
+        openLinks("Cached Annotation");
 
         assertText("value", "000");
         assertText("value2size", "111");
@@ -1291,7 +1289,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void override_method_with_cached()
     {
-        clickThru("Cached Annotation2");
+        openLinks("Cached Annotation2");
 
         assertText("value", "111");
 
@@ -1310,7 +1308,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void has_body()
     {
-        clickThru("Has Body Demo");
+        openLinks("Has Body Demo");
 
         assertText("nobody", "false");
         assertText("somebody", "true");
@@ -1319,7 +1317,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void bindparameter_nomatchingparameter()
     {
-        clickThru("BindParameter error handling");
+        openLinks("BindParameter error handling");
 
         assertTextPresent(
                 "An unexpected application exception has occurred.",
@@ -1332,7 +1330,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void bindparameter_on_componentfield_throws_exception()
     {
-        clickThru("BindParameter on component");
+        openLinks("BindParameter on component");
 
         assertTextPresent(
                 "An unexpected application exception has occurred.",
@@ -1342,7 +1340,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void trigger_demo()
     {
-        clickThru("Trigger Demo");
+        openLinks("Trigger Demo");
 
         assertTextPresent("Event 'provideAdditionalMarkup' handled.");
     }
@@ -1360,7 +1358,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void secure_page_access()
     {
-        clickThru("Secure Page Demo");
+        openLinks("Secure Page Demo");
 
         assertText("secure", "secure");
 
@@ -1392,23 +1390,23 @@ public class CoreBehaviorsTests extends 
         // the next.
 
         // context resources should be available by default.
-        clickThru("Asset Protection Demo");
+        openLinks("Asset Protection Demo");
         clickAndWait("link=Available File");
         assertTextPresent("This file should be available to clients.");
 
-        clickThru("Asset Protection Demo");
+        openLinks("Asset Protection Demo");
         clickAndWait("link=Unavailable CSS");
         assertTextPresent("HTTP ERROR 404");
 
-        clickThru("Asset Protection Demo");
+        openLinks("Asset Protection Demo");
         clickAndWait("link=WEB-INF");
         assertTextPresent("HTTP ERROR 404");
 
-        clickThru("Asset Protection Demo");
+        openLinks("Asset Protection Demo");
         clickAndWait("link=WEB-INF/");
         assertTextPresent("HTTP ERROR 404");
 
-        clickThru("Asset Protection Demo");
+        openLinks("Asset Protection Demo");
         clickAndWait("link=Available File2");
         assertTextPresent("This file should be available to clients.");
     }
@@ -1417,7 +1415,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void failure_inside_default_object_renderer()
     {
-        clickThru("RenderObject Exception Demo");
+        openLinks("RenderObject Exception Demo");
 
         assertText(
                 "container",
@@ -1429,7 +1427,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void module_loading()
     {
-        clickThru("Test Only Service Demo");
+        openLinks("Test Only Service Demo");
 
         assertText("message", "TestOnly service message");
     }
@@ -1438,7 +1436,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void page_reset_annotation()
     {
-        clickThru("PageReset Annotation Demo");
+        openLinks("PageReset Annotation Demo");
 
         assertText("current", "0");
 
@@ -1464,7 +1462,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void page_reset_annotation_on_bad_method()
     {
-        clickThru("PageReset Annotation Failure");
+        openLinks("PageReset Annotation Failure");
 
         assertTextPresent(
                 "Method org.apache.tapestry5.integration.app1.pages.PageResetFailure.reset(java.lang.String)",
@@ -1475,7 +1473,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void injection_of_application_message_catalog_into_service()
     {
-        clickThru("Inject Global Messages into Service Demo");
+        openLinks("Inject Global Messages into Service Demo");
 
         assertText("status", "Application Catalog Working");
     }
@@ -1484,7 +1482,7 @@ public class CoreBehaviorsTests extends 
     @Test
     public void discard_after()
     {
-        clickThru("@DiscardAfter Demo");
+        openLinks("@DiscardAfter Demo");
 
         type("stringValue", "foo bar baz");
 
@@ -1508,7 +1506,7 @@ public class CoreBehaviorsTests extends 
 
         assertTextPresent("Oops! Error occured");
 
-        clickThru("@DiscardAfter Demo");
+        openLinks("@DiscardAfter Demo");
 
         assertTextPresent("Value is: 'barney quux'");
     }
@@ -1526,31 +1524,31 @@ public class CoreBehaviorsTests extends 
     @Test
     public void multiple_resources_contributed_to_global_message_catalog()
     {
-        clickThru("Library Messages Demo");
+        openLinks("Library Messages Demo");
 
         assertText("id=no-override", "[pre-app]");
         assertText("id=override", "[app]");
     }
-    
+
     /** TAP5-1254 */
     @Test
     public void decorate_page_render_link()
     {
-        clickThru("Decorate Page Render Link Demo");
+        openLinks("Decorate Page Render Link Demo");
 
         clickAndWait("link=refresh");
-        
+
         assertTextPresent("Page Render Link Decorated: true");
     }
-    
+
     /** TAP5-1254 */
     @Test
     public void decorate_component_event_link()
     {
-        clickThru("Decorate Component Event Link Demo");
+        openLinks("Decorate Component Event Link Demo");
 
         clickAndWait("link=refresh");
-        
+
         assertTextPresent("Component Event Link Decorated: true");
     }
 }

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FailureTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FailureTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FailureTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FailureTests.java Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2010 The Apache Software Foundation
+// Copyright 2010, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ public class FailureTests extends Tapest
     @Test
     public void component_id_in_template_with_no_type()
     {
-        clickThru("No Component Type Provided");
+        openLinks("No Component Type Provided");
 
         assertTextPresent("org.apache.tapestry5.integration.app1.pages.NoTypeProvidedDemo",
                 "You must specify the type via t:type, the element, or @Component annotation.");

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java Thu Mar 31 23:16:01 2011
@@ -27,7 +27,7 @@ public class FormTests extends TapestryC
     @Test
     public void form_encoding_type()
     {
-        clickThru("Form Encoding Type");
+        openLinks("Form Encoding Type");
 
         assertAttribute("//form/@enctype", "x-override");
     }
@@ -35,7 +35,7 @@ public class FormTests extends TapestryC
     @Test
     public void page_context_in_form()
     {
-        clickThru("Page Context in Form");
+        openLinks("Page Context in Form");
 
         assertTextSeries("//li[%d]", 1, "betty", "wilma", "context with spaces", "context/with/slashes");
         assertFieldValue("t:ac", "betty/wilma/context$0020with$0020spaces/context$002fwith$002fslashes");
@@ -49,7 +49,7 @@ public class FormTests extends TapestryC
     @Test
     public void password_field()
     {
-        clickThru("PasswordFieldDemo");
+        openLinks("PasswordFieldDemo");
 
         type("userName", "howard");
         type("password", "wrong-password");
@@ -74,7 +74,7 @@ public class FormTests extends TapestryC
     @Test
     public void server_side_validation_for_textfield_and_textarea() throws Exception
     {
-        clickThru("ValidForm");
+        openLinks("ValidForm");
 
         clickAndWait(SUBMIT);
         assertTextPresent("You must provide a value for Email.");
@@ -122,7 +122,7 @@ public class FormTests extends TapestryC
     @Test
     public void client_side_validation()
     {
-        clickThru("Client Validation Demo");
+        openLinks("Client Validation Demo");
 
         // Used to ensure that the <script> tag was present, but that's hard to
         // do with script combining enabled.
@@ -153,7 +153,7 @@ public class FormTests extends TapestryC
     @Test
     public void cancel_button()
     {
-        clickThru("Client Validation Demo");
+        openLinks("Client Validation Demo");
 
         // Used to ensure that the <script> tag was present, but that's hard to
         // do with script combining enabled.
@@ -168,7 +168,7 @@ public class FormTests extends TapestryC
     @Test
     public void radio_group_validator()
     {
-        clickThru("RadioDemo", "reset");
+        openLinks("RadioDemo", "reset");
 
         // Verify that the "required" validator works.
         clickAndWait(SUBMIT);
@@ -179,7 +179,7 @@ public class FormTests extends TapestryC
     @Test
     public void regexp_validator()
     {
-        clickThru("Regexp Demo");
+        openLinks("Regexp Demo");
 
         String update = SUBMIT;
 
@@ -207,7 +207,7 @@ public class FormTests extends TapestryC
     @Test
     public void basic_datefield()
     {
-        clickThru("DateField Demo", "clear", "english");
+        openLinks("DateField Demo", "clear", "english");
 
         type("birthday", "24 dec 1966");
         type("asteroidImpact", "05/28/2046");
@@ -236,7 +236,7 @@ public class FormTests extends TapestryC
     @Test
     public void xss_datefield()
     {
-        clickThru("DateField Demo", "clear", "english");
+        openLinks("DateField Demo", "clear", "english");
 
         type("asteroidImpact", "<script>alert('T5 is great'); </script>");
 
@@ -248,7 +248,7 @@ public class FormTests extends TapestryC
     @Test
     public void event_based_translate() throws Exception
     {
-        clickThru("EventMethod Translator");
+        openLinks("EventMethod Translator");
 
         type("count", "123");
         clickAndWait(SUBMIT);
@@ -292,7 +292,7 @@ public class FormTests extends TapestryC
     @Test
     public void radio_button_and_group()
     {
-        clickThru("RadioDemo");
+        openLinks("RadioDemo");
 
         String update = SUBMIT;
 
@@ -318,7 +318,7 @@ public class FormTests extends TapestryC
     @Test
     public void disabled_fields() throws Exception
     {
-        clickThru("Disabled Fields");
+        openLinks("Disabled Fields");
 
         String[] paths = new String[]
         { "//input[@id='textfield']",
@@ -361,7 +361,7 @@ public class FormTests extends TapestryC
     @Test
     public void null_field_strategy()
     {
-        clickThru("Null Field Strategy Demo");
+        openLinks("Null Field Strategy Demo");
 
         String locator = "//span[@id='value']";
 
@@ -382,7 +382,7 @@ public class FormTests extends TapestryC
     @Test
     public void label_invokes_validation_decorator_at_correct_time()
     {
-        clickThru("Override Validation Decorator");
+        openLinks("Override Validation Decorator");
 
         // This is sub-optimal, as it doesn't esnure that the before/after field
         // values really do wrap around
@@ -407,7 +407,7 @@ public class FormTests extends TapestryC
     @Test
     public void wrapper_types_with_text_field()
     {
-        clickThru("TextField Wrapper Types", "clear");
+        openLinks("TextField Wrapper Types", "clear");
 
         assertFieldValue("count", "");
         assertText("value", "null");
@@ -433,7 +433,7 @@ public class FormTests extends TapestryC
     @Test
     public void submit_with_context()
     {
-        clickThru("Submit With Context");
+        openLinks("Submit With Context");
 
         clickAndWait(SUBMIT);
 
@@ -457,7 +457,7 @@ public class FormTests extends TapestryC
     @Test
     public void client_field_format_validation()
     {
-        clickThru("Client Format Validation");
+        openLinks("Client Format Validation");
 
         type("amount", "abc");
         type("quantity", "abc");
@@ -477,7 +477,7 @@ public class FormTests extends TapestryC
     @Test
     public void validation_exception_thrown_from_validate_form_event_handler()
     {
-        clickThru("ValidationForm ValidationException Demo");
+        openLinks("ValidationForm ValidationException Demo");
 
         clickAndWait(SUBMIT);
 
@@ -489,7 +489,7 @@ public class FormTests extends TapestryC
     @Test
     public void form_field_outside_form()
     {
-        clickThru("Form Field Outside Form");
+        openLinks("Form Field Outside Form");
 
         assertTextPresent(
                 "org.apache.tapestry5.internal.services.RenderQueueException",
@@ -503,7 +503,7 @@ public class FormTests extends TapestryC
     @Test
     public void nested_form_check()
     {
-        clickThru("Nested Form Demo");
+        openLinks("Nested Form Demo");
 
         assertTextPresent("Form components may not be placed inside other Form components.");
     }
@@ -514,7 +514,7 @@ public class FormTests extends TapestryC
     @Test
     public void blank_password_does_not_update()
     {
-        clickThru("Blank Password Demo");
+        openLinks("Blank Password Demo");
 
         type("password", "secret");
 
@@ -537,7 +537,7 @@ public class FormTests extends TapestryC
     @Test
     public void per_form_validation_messages_and_constraints()
     {
-        clickThru("Per-Form Validation Messages");
+        openLinks("Per-Form Validation Messages");
 
         clickAndWait("//input[@type='submit' and @value='Login']");
 
@@ -566,7 +566,7 @@ public class FormTests extends TapestryC
     @Test
     public void link_submit_without_validator()
     {
-        clickThru("LinkSubmit Without Validator Demo");
+        openLinks("LinkSubmit Without Validator Demo");
 
         type("searchField", "Anders Haraldsson");
 
@@ -581,7 +581,7 @@ public class FormTests extends TapestryC
     @Test
     public void client_side_numeric_validation()
     {
-        clickThru("Client-Side Numeric Validation", "reset");
+        openLinks("Client-Side Numeric Validation", "reset");
 
         assertText("outputLongValue", "1000");
         assertText("outputDoubleValue", "1234.67");
@@ -636,7 +636,7 @@ public class FormTests extends TapestryC
     @Test
     public void client_validation_for_numeric_fields_that_are_not_required()
     {
-        clickThru("Form Zone Demo");
+        openLinks("Form Zone Demo");
 
         type("longValue", "alpha");
 
@@ -658,7 +658,7 @@ public class FormTests extends TapestryC
     @Test
     public void hidden_field()
     {
-        clickThru("Hidden Demo", "setup");
+        openLinks("Hidden Demo", "setup");
 
         clickAndWait(SUBMIT);
 
@@ -668,7 +668,7 @@ public class FormTests extends TapestryC
     @Test
     public void validation_constraints_from_messages()
     {
-        clickThru("Validation Constraints From Messages");
+        openLinks("Validation Constraints From Messages");
 
         click(SUBMIT);
 
@@ -696,7 +696,7 @@ public class FormTests extends TapestryC
     @Test
     public void link_submit_component()
     {
-        clickThru("LinkSubmit Demo");
+        openLinks("LinkSubmit Demo");
 
         // Wait a moment for the page to initialize.
 
@@ -726,7 +726,7 @@ public class FormTests extends TapestryC
     @Test
     public void calendar_field_inside_bean_editor()
     {
-        clickThru("BeanEditor / Calendar Demo", "clear");
+        openLinks("BeanEditor / Calendar Demo", "clear");
 
         type("calendar", "04/06/1978");
 
@@ -741,7 +741,7 @@ public class FormTests extends TapestryC
     @Test
     public void image_submit_triggers_selected_event()
     {
-        clickThru("Submit with an Image Demo");
+        openLinks("Submit with an Image Demo");
 
         type("value", "barney gumble");
 
@@ -760,7 +760,7 @@ public class FormTests extends TapestryC
     @Test
     public void simple_form()
     {
-        clickThru("SimpleForm");
+        openLinks("SimpleForm");
 
         assertText("//label[@for='disabled']", "Disabled");
 
@@ -850,7 +850,7 @@ public class FormTests extends TapestryC
     @Test
     public void use_of_cancel_mode_on_submit_button()
     {
-        clickThru("Cancel Demo");
+        openLinks("Cancel Demo");
 
         clickAndWait("//input[@type='submit']");
 
@@ -860,7 +860,7 @@ public class FormTests extends TapestryC
     @Test
     public void use_of_cancel_mode_with_submitlink()
     {
-        clickThru("Cancel Demo");
+        openLinks("Cancel Demo");
 
         clickAndWait("//a[@id='cancelLink']");
 
@@ -870,7 +870,7 @@ public class FormTests extends TapestryC
     @Test
     public void validation_decoration_for_select() throws Exception
     {
-        clickThru("Select Demo");
+        openLinks("Select Demo");
 
         clickAndWait(SUBMIT);
         assertTextPresent("You must provide a value for Color.");
@@ -894,7 +894,7 @@ public class FormTests extends TapestryC
     @Test
     public void create_select_model_from_objects_and_property_name() throws Exception
     {
-        clickThru("SelectModel from objects and property name");
+        openLinks("SelectModel from objects and property name");
 
         select("track", "label=The Calling");
 
@@ -906,7 +906,7 @@ public class FormTests extends TapestryC
     @Test
     public void validation_macro() throws Exception
     {
-        clickThru("Validator Macro Demo");
+        openLinks("Validator Macro Demo");
 
         clickAndWait(SUBMIT);
         

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GeneralComponentTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GeneralComponentTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GeneralComponentTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GeneralComponentTests.java Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2009 The Apache Software Foundation
+// Copyright 2009, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ public class GeneralComponentTests exten
     @Test
     public void unless_component()
     {
-        clickThru("Unless Demo");
+        openLinks("Unless Demo");
 
         assertText("//p[@id='false']", "false is rendered");
 
@@ -38,7 +38,7 @@ public class GeneralComponentTests exten
     @Test
     public void action_links_on_non_active_page()
     {
-        clickThru("Action Links off of Active Page");
+        openLinks("Action Links off of Active Page");
 
         String contextSpan = "//span[@id='context']";
 
@@ -80,14 +80,14 @@ public class GeneralComponentTests exten
     @Test
     public void report_location_of_unavailable_component_in_error()
     {
-        clickThru("Report Location of Unavailable Component");
+        openLinks("Report Location of Unavailable Component");
 
         assertText("//td[@class='t-location-content t-location-current']", "<t:unavailablecomponent/>");
     }
     
     /** TAP5-1378 */
     @Test public void using_delegate_for_inline_components() {
-    	clickThru("Inline Delegate");
+    	openLinks("Inline Delegate");
     	
     	// no params
     	assertText("block1", "block 1");

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GridTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GridTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GridTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/GridTests.java Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2009 The Apache Software Foundation
+// Copyright 2009, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@ public class GridTests extends TapestryC
     @Test
     public void basic_grid()
     {
-        clickThru("Grid Demo");
+        openLinks("Grid Demo");
 
         // "Sort Rating" via the header cell override (TAPESTRY-2081)
 
@@ -108,7 +108,7 @@ public class GridTests extends TapestryC
     @Test
     public void grid_remove_reorder()
     {
-        clickThru("Grid Remove/Reorder Demo");
+        openLinks("Grid Remove/Reorder Demo");
 
         assertTextSeries("//th[%d]", 1, "Rating", "Title", "Album", "Artist", "Genre");
     }
@@ -116,7 +116,7 @@ public class GridTests extends TapestryC
     @Test
     public void grid_set() throws Exception
     {
-        clickThru("Grid Set Demo");
+        openLinks("Grid Set Demo");
 
         assertFalse(isTextPresent("Exception"));
 
@@ -128,7 +128,7 @@ public class GridTests extends TapestryC
     @Test
     public void grid_from_explicit_interface_model()
     {
-        clickThru("SimpleTrack Grid Demo");
+        openLinks("SimpleTrack Grid Demo");
 
         assertTextSeries("//th[%d]", 1, "Title", "Album", "Rating");
 
@@ -138,7 +138,7 @@ public class GridTests extends TapestryC
     @Test
     public void grid_enum_display()
     {
-        clickThru("Grid Enum Demo", "reset");
+        openLinks("Grid Enum Demo", "reset");
 
         assertTextSeries("//tr[1]/td[%d]", 1, "End World Hunger", "Medium");
         assertTextSeries("//tr[2]/td[%d]", 1, "Develop Faster-Than-Light Travel", "Ultra Important");
@@ -148,7 +148,7 @@ public class GridTests extends TapestryC
     @Test
     public void null_grid() throws Exception
     {
-        clickThru("Null Grid");
+        openLinks("Null Grid");
 
         assertTextPresent("There is no data to display.");
     }
@@ -156,7 +156,7 @@ public class GridTests extends TapestryC
     @Test
     public void grid_inside_form()
     {
-        clickThru("Grid Form Demo", "reset", "2");
+        openLinks("Grid Form Demo", "reset", "2");
 
         // The first input field is the form's hidden field.
 
@@ -178,7 +178,7 @@ public class GridTests extends TapestryC
     @Test
     public void grid_inside_form_with_encoder()
     {
-        clickThru("Grid Form Encoder Demo", "reset", "2");
+        openLinks("Grid Form Encoder Demo", "reset", "2");
 
         // The first input field is the form's hidden field.
 
@@ -213,7 +213,7 @@ public class GridTests extends TapestryC
     @Test
     public void lean_grid()
     {
-        clickThru("Lean Grid Demo");
+        openLinks("Lean Grid Demo");
 
         assertTextSeries("//th[%d]", 1, "Title", "Album", "Artist", "Genre", "Play Count", "Rating");
 
@@ -228,7 +228,7 @@ public class GridTests extends TapestryC
     @Test
     public void grid_row_and_column_indexes()
     {
-        clickThru("Lean Grid Demo", "2");
+        openLinks("Lean Grid Demo", "2");
 
         // Use page 2 to ensure that the row index is the row in the Grid, not
         // the row index of the data
@@ -245,7 +245,7 @@ public class GridTests extends TapestryC
     @Test
     public void adding_new_columns_to_grid_programattically()
     {
-        clickThru("Added Grid Columns Demo", "Title Length");
+        openLinks("Added Grid Columns Demo", "Title Length");
 
         assertTextSeries("//th[%d]", 1, "Title", "View", "Title Length", "Dummy");
 
@@ -256,7 +256,7 @@ public class GridTests extends TapestryC
     @Test
     public void inplace_grid()
     {
-        clickThru("In-Place Grid Demo");
+        openLinks("In-Place Grid Demo");
 
         String timestamp = getText("lastupdate");
 
@@ -275,7 +275,7 @@ public class GridTests extends TapestryC
     @Test
     public void short_grid()
     {
-        clickThru("Short Grid");
+        openLinks("Short Grid");
 
         for (int i = 0; i < 6; i++)
         {
@@ -296,7 +296,7 @@ public class GridTests extends TapestryC
     @Test
     public void delete_rows_from_grid()
     {
-        clickThru("Delete From Grid", "setup the database", "2");
+        openLinks("Delete From Grid", "setup the database", "2");
 
         for (int i = 6; i <= 10; i++)
             clickAndWait("link=ToDo #" + i);

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/LoopTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/LoopTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/LoopTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/LoopTests.java Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2009 The Apache Software Foundation
+// Copyright 2009, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ public class LoopTests extends TapestryC
     @Test
     public void handling_of_empty_loop()
     {
-        clickThru("Empty Loop Demo");
+        openLinks("Empty Loop Demo");
 
         assertText("first", "");
         assertText("second", "Source is null.");
@@ -47,7 +47,7 @@ public class LoopTests extends TapestryC
     @Test
     public void generic_loop()
     {
-        clickThru("Generic Loop Demo");
+        openLinks("Generic Loop Demo");
         String[] strings = {"1", "3", "5", "7", "11"};
         for ( int i = 0; i< strings.length; ++i)
         {
@@ -69,7 +69,7 @@ public class LoopTests extends TapestryC
 
     private void test_loop_inside_form(String linkLabel)
     {
-        clickThru(linkLabel);
+        openLinks(linkLabel);
 
         clickAndWait("link=reset the database");
 

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/MixinTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/MixinTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/MixinTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/MixinTests.java Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2009 The Apache Software Foundation
+// Copyright 2009, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ public class MixinTests extends Tapestry
     @Test
     public void render_notification_mixin()
     {
-        clickThru("RenderNotification Demo");
+        openLinks("RenderNotification Demo");
 
         assertTextSeries("//ul[@id='list']//li[%d]", 1, "before item render", "item body in template",
                 "after item render");
@@ -31,7 +31,7 @@ public class MixinTests extends Tapestry
     @Test
     public void renderclientid_mixin()
     {
-        clickThru("RenderClientId Mixin");
+        openLinks("RenderClientId Mixin");
 
         assertText("divwithid", "Div Content");
     }
@@ -44,7 +44,7 @@ public class MixinTests extends Tapestry
         // echo2 => echo2-<original>-before, "3", echo2-<original>-after
         // echo3 => echo3-<original>-before, "world", echo3-<original>-after
         // order1: echo, echo2, echo3
-        clickThru("Mixin Ordering Demo");
+        openLinks("Mixin Ordering Demo");
 
         assertMixinOrder(1, 0, 1, 2, 3, true);
         // order2: echo3, echo2, echo

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/PaletteTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/PaletteTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/PaletteTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/PaletteTests.java Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2009 The Apache Software Foundation
+// Copyright 2009, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ public class PaletteTests extends Tapest
     @Test
     public void palette_component()
     {
-        clickThru("Palette Demo", "reset");
+        openLinks("Palette Demo", "reset");
 
         assertText("//div[@class='t-palette-available']/div[@class='t-palette-title']",
                 "Languages Offered");
@@ -85,7 +85,7 @@ public class PaletteTests extends Tapest
     @Test
     public void palette_component_disabled_options()
     {
-        clickThru("Palette Demo", "reset");
+        openLinks("Palette Demo", "reset");
 
         /*
          * force of the options to be disabled rather than creating the model
@@ -103,7 +103,7 @@ public class PaletteTests extends Tapest
     @Test
     public void palette_component_client_validation()
     {
-        clickThru("Palette Demo", "reset");
+        openLinks("Palette Demo", "reset");
 
         click(SUBMIT);
 

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/RequestParameterTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/RequestParameterTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/RequestParameterTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/RequestParameterTests.java Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2010 The Apache Software Foundation
+// Copyright 2010, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ public class RequestParameterTests exten
     @Test
     public void successful_use_of_query_parameter_annotation()
     {
-        clickThru("RequestParameter Annotation Demo", "Working Link");
+        openLinks("RequestParameter Annotation Demo", "Working Link");
 
         assertText("id=current", "97");
     }
@@ -30,7 +30,7 @@ public class RequestParameterTests exten
     @Test
     public void null_value_when_not_allowed()
     {
-        clickThru("RequestParameter Annotation Demo", "Null Link");
+        openLinks("RequestParameter Annotation Demo", "Null Link");
 
         assertTextPresent(
                 "Unable process query parameter 'gnip' as parameter #1 of event handler method void onFrob(int) (in class org.apache.tapestry5.integration.app1.pages.RequestParameterDemo)",
@@ -40,7 +40,7 @@ public class RequestParameterTests exten
     @Test
     public void null_for_primitive_when_allowed()
     {
-        clickThru("RequestParameter Annotation Demo", "Null Allowed Link");
+        openLinks("RequestParameter Annotation Demo", "Null Allowed Link");
 
         assertTextPresent(
                 "Unable process query parameter 'gnip' as parameter #1 of event handler method void onFrobNullAllowed(int) (in class org.apache.tapestry5.integration.app1.pages.RequestParameterDemo)",
@@ -50,7 +50,7 @@ public class RequestParameterTests exten
     @Test
     public void type_mismatch_for_method_parameter()
     {
-        clickThru("RequestParameter Annotation Demo", "Broken Link");
+        openLinks("RequestParameter Annotation Demo", "Broken Link");
 
         assertTextPresent(
                 "Unable process query parameter 'gnip' as parameter #1 of event handler method void onFrob(int) (in class org.apache.tapestry5.integration.app1.pages.RequestParameterDemo)",

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneTests.java Thu Mar 31 23:16:01 2011
@@ -30,7 +30,7 @@ public class ZoneTests extends TapestryC
     @Test
     public void select_zone()
     {
-        clickThru("Select Zone Demo");
+        openLinks("Select Zone Demo");
 
         select("carMaker", "Bmw");
 
@@ -70,7 +70,7 @@ public class ZoneTests extends TapestryC
     @Test
     public void zone_updates()
     {
-        clickThru("Zone Demo");
+        openLinks("Zone Demo");
 
         assertTextPresent("No name has been selected.");
 
@@ -93,7 +93,7 @@ public class ZoneTests extends TapestryC
     @Test
     public void zone_redirect_by_class()
     {
-        clickThru("Zone Demo");
+        openLinks("Zone Demo");
 
         clickAndWait("link=Perform a redirect to another page");
 
@@ -106,7 +106,7 @@ public class ZoneTests extends TapestryC
     @Test
     public void update_multiple_zones_at_once()
     {
-        clickThru("Multiple Zone Update Demo");
+        openLinks("Multiple Zone Update Demo");
 
         String now = getText("now");
 
@@ -134,7 +134,7 @@ public class ZoneTests extends TapestryC
     @Test
     public void zone_namespace_interaction_fixed()
     {
-        clickThru("Zone/Namespace Interaction");
+        openLinks("Zone/Namespace Interaction");
 
         String outerNow = getText("outernow");
         String innerNow = getText("innernow");
@@ -157,7 +157,7 @@ public class ZoneTests extends TapestryC
     @Test
     public void zone_updated_event_triggered_on_client()
     {
-        clickThru("Zone Demo");
+        openLinks("Zone Demo");
 
         assertText("zone-update-message", "");
 
@@ -176,7 +176,7 @@ public class ZoneTests extends TapestryC
     @Test
     public void link_submit_inside_form_that_updates_a_zone()
     {
-        clickThru("LinkSubmit inside Zone");
+        openLinks("LinkSubmit inside Zone");
 
         String now = getText("now");
 
@@ -203,7 +203,7 @@ public class ZoneTests extends TapestryC
     @Test
     public void zone_inject_component_from_template()
     {
-        clickThru("Inject Component Demo");
+        openLinks("Inject Component Demo");
 
         assertTextPresent(Form.class.getName() + "[form--form]");
     }
@@ -214,7 +214,7 @@ public class ZoneTests extends TapestryC
     @Test
     public void zone_fade_back_backgroundcolor()
     {
-        clickThru("Form Zone Demo");
+        openLinks("Form Zone Demo");
 
         type("longValue", "12");
 
@@ -235,7 +235,7 @@ public class ZoneTests extends TapestryC
     @Test
     public void update_zone_inside_form()
     {
-        clickThru("Zone/Form Update Demo");
+        openLinks("Zone/Form Update Demo");
 
         click("link=Update the form");
 
@@ -252,7 +252,7 @@ public class ZoneTests extends TapestryC
     @Test
     public void update_to_zone_inside_form()
     {
-        clickThru("MultiZone Update inside a Form");
+        openLinks("MultiZone Update inside a Form");
 
         select("selectValue1", "3 pre ajax");
 

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app3/AdditionalIntegrationTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app3/AdditionalIntegrationTests.java?rev=1087494&r1=1087493&r2=1087494&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app3/AdditionalIntegrationTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app3/AdditionalIntegrationTests.java Thu Mar 31 23:16:01 2011
@@ -1,4 +1,4 @@
-// Copyright 2007, 2008 The Apache Software Foundation
+// Copyright 2007, 2008, 2011 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@ public class AdditionalIntegrationTests 
     @Test
     public void bean_block_overrides()
     {
-        clickThru("BeanDisplay Override Demo");
+        openLinks("BeanDisplay Override Demo");
 
         assertText("//dd[@class='no']", "Nay");
         assertText("//dd[@class='yes']", "Yea");
@@ -64,7 +64,7 @@ public class AdditionalIntegrationTests 
     @Test
     public void page_document_generator()
     {
-        clickThru("PageDocumentGenerator demo");
+        openLinks("PageDocumentGenerator demo");
 
         // In generated document: not optimized
         assertAttribute("//a[1]/@href", "/login");
@@ -76,7 +76,7 @@ public class AdditionalIntegrationTests 
 
     public void ajax_server_side_exception()
     {
-        clickThru("Console demo");
+        openLinks("Console demo");
 
         assertTextPresent("Demonstrates Tapestry console");
 



Mime
View raw message