Author: jbq
Date: Thu Feb 22 05:44:09 2007
New Revision: 510508

URL: http://svn.apache.org/viewvc?view=rev&rev=510508
Log:
Reformat, and sync with 1.x

Modified:
    
incubator/wicket/trunk/wicket/src/main/java/wicket/util/tester/WicketTester.java

Modified: 
incubator/wicket/trunk/wicket/src/main/java/wicket/util/tester/WicketTester.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/util/tester/WicketTester.java?view=diff&rev=510508&r1=510507&r2=510508
==============================================================================
--- 
incubator/wicket/trunk/wicket/src/main/java/wicket/util/tester/WicketTester.java
 (original)
+++ 
incubator/wicket/trunk/wicket/src/main/java/wicket/util/tester/WicketTester.java
 Thu Feb 22 05:44:09 2007
@@ -194,7 +194,7 @@
                        return DummyHomePage.class;
                }
        }
-       
+
        /**
         * Create WicketTester and automatically create a WebApplication, but 
the
         * tester will have no home page.
@@ -738,18 +738,18 @@
                {
                        // Let's see if we should invoke the onclick or not
                        Resource resource = null;
-                       
-                       try 
+
+                       try
                        {
                                Field resourceField = 
ResourceLink.class.getDeclaredField("resource");
                                resourceField.setAccessible(true);
                                resource = 
(Resource)resourceField.get(linkComponent);
                        }
-                       catch(Exception e)
+                       catch (Exception e)
                        {
                                Assert.fail(e.getMessage());
                        }
-                       
+
                        // If the link holds the resource itself we should
                        if (resource != null)
                        {
@@ -789,7 +789,7 @@
                                }
 
                        }
-                       
+
                        newRequestToComponent(link);
                }
                else
@@ -967,7 +967,7 @@
        }
 
        /**
-        * dump component tree
+        * dump component trees
         */
        public void debugComponentTrees()
        {
@@ -976,7 +976,7 @@
 
 
        /**
-        * Dump the component tree to log.
+        * Dump the component trees to log.
         * 
         * @param filter
         *            Show only the components, which path contains the
@@ -1077,26 +1077,29 @@
         * component by using:
         * 
         * <pre>
-        * ...
-        * component.add(new AjaxEventBehavior(ClientEvent.DBLCLICK) {
-        *    public void onEvent(AjaxRequestTarget) {
-        *       // Do something.
-        *    }
-        * });
-        * ...
+        *     ...
+        *     component.add(new AjaxEventBehavior(ClientEvent.DBLCLICK) {
+        *         public void onEvent(AjaxRequestTarget) {
+        *             // Do something.
+        *         }
+        *     });
+        *     ...
         * </pre>
         * 
         * You can then test that the code inside onEvent actually does what 
it's
         * supposed to, using the WicketTester:
         * 
         * <pre>
-        * ...
-        * tester.executeAjaxEvent(component, ClientEvent.DBLCLICK);
-        *                              
-        * // Test that the code inside onEvent is correct.
-        * ...
+        *     ...
+        *     tester.executeAjaxEvent(component, ClientEvent.DBLCLICK);
+        *                                                                      
                    
+        *     // Test that the code inside onEvent is correct.
+        *     ...
         * </pre>
         * 
+        * This also works with AjaxFormSubmitBehavior, where it will "submit" 
the
+        * form before executing the command.
+        * <p>
         * PLEASE NOTE! This method doesn't actually insert the component in the
         * client DOM tree, using javascript.
         * 


Reply via email to