tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r687810 - /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/test/TapestryTestCase.java
Date Thu, 21 Aug 2008 17:32:33 GMT
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);
+    }
 }



Mime
View raw message