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 2008/08/21 19:32:33 UTC

svn commit: r687810 - /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/test/TapestryTestCase.java

Author: hlship
Date: Thu Aug 21 10:32:33 2008
New Revision: 687810

URL: http://svn.apache.org/viewvc?rev=687810&view=rev
Log:
TAPESTRY-2357: Unlike Tapestry 4, Tapestry 5 does not automatically position the cursor into a form

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/test/TapestryTestCase.java

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/test/TapestryTestCase.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/test/TapestryTestCase.java?rev=687810&r1=687809&r2=687810&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/test/TapestryTestCase.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/test/TapestryTestCase.java Thu Aug 21 10:32:33 2008
@@ -1084,4 +1084,25 @@
     {
         expect(overrides.getOverrideMessages()).andReturn(messages);
     }
+
+    protected final void train_isDisabled(Field field, boolean disabled)
+    {
+        expect(field.isDisabled()).andReturn(disabled);
+    }
+
+    protected final ValidationDecorator mockValidationDecorator()
+    {
+        return newMock(ValidationDecorator.class);
+    }
+
+    protected final void train_isRequired(Field field, boolean required)
+    {
+        expect(field.isRequired()).andReturn(required);
+
+    }
+
+    protected final void train_getClientId(ClientElement element, String clientId)
+    {
+        expect(element.getClientId()).andReturn(clientId);
+    }
 }