click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r958365 - in /click/trunk/click/mock/test/org/apache/click/pages: BorderPage.java BorderTestPage.java FormPage.java ForwardPage.java RedirectPage.java TestPage.java
Date Sun, 27 Jun 2010 11:19:13 GMT
Author: sabob
Date: Sun Jun 27 11:19:13 2010
New Revision: 958365

URL: http://svn.apache.org/viewvc?rev=958365&view=rev
Log:
added override annotations

Modified:
    click/trunk/click/mock/test/org/apache/click/pages/BorderPage.java
    click/trunk/click/mock/test/org/apache/click/pages/BorderTestPage.java
    click/trunk/click/mock/test/org/apache/click/pages/FormPage.java
    click/trunk/click/mock/test/org/apache/click/pages/ForwardPage.java
    click/trunk/click/mock/test/org/apache/click/pages/RedirectPage.java
    click/trunk/click/mock/test/org/apache/click/pages/TestPage.java

Modified: click/trunk/click/mock/test/org/apache/click/pages/BorderPage.java
URL: http://svn.apache.org/viewvc/click/trunk/click/mock/test/org/apache/click/pages/BorderPage.java?rev=958365&r1=958364&r2=958365&view=diff
==============================================================================
--- click/trunk/click/mock/test/org/apache/click/pages/BorderPage.java (original)
+++ click/trunk/click/mock/test/org/apache/click/pages/BorderPage.java Sun Jun 27 11:19:13
2010
@@ -24,12 +24,13 @@ import org.apache.click.Page;
  * A border page for mock testing.
  */
 public class BorderPage extends Page {
-    
+
     /**
      * Return border template path.
      *
      * @return border template path
      */
+    @Override
     public String getTemplate() {
         return "border-template.htm";
     }

Modified: click/trunk/click/mock/test/org/apache/click/pages/BorderTestPage.java
URL: http://svn.apache.org/viewvc/click/trunk/click/mock/test/org/apache/click/pages/BorderTestPage.java?rev=958365&r1=958364&r2=958365&view=diff
==============================================================================
--- click/trunk/click/mock/test/org/apache/click/pages/BorderTestPage.java (original)
+++ click/trunk/click/mock/test/org/apache/click/pages/BorderTestPage.java Sun Jun 27 11:19:13
2010
@@ -23,11 +23,14 @@ package org.apache.click.pages;
  */
 public class BorderTestPage extends BorderPage {
 
+    public static final String ID_VALUE = "200";
+
     /**
      * Initialize page.
      */
+    @Override
     public void onInit() {
-        getContext().setRequestAttribute("id", "200");
+        getContext().setRequestAttribute("id", ID_VALUE);
         addModel("myparam", getContext().getRequestParameter("myparam"));
     }
 }

Modified: click/trunk/click/mock/test/org/apache/click/pages/FormPage.java
URL: http://svn.apache.org/viewvc/click/trunk/click/mock/test/org/apache/click/pages/FormPage.java?rev=958365&r1=958364&r2=958365&view=diff
==============================================================================
--- click/trunk/click/mock/test/org/apache/click/pages/FormPage.java (original)
+++ click/trunk/click/mock/test/org/apache/click/pages/FormPage.java Sun Jun 27 11:19:13 2010
@@ -33,11 +33,12 @@ public class FormPage extends Page {
     /**
      * Initialize page.
      */
+    @Override
     public void onInit() {
         form.add(new TextField("myfield"));
         addControl(form);
     }
-    
+
     /**
      * Return form instance.
      *

Modified: click/trunk/click/mock/test/org/apache/click/pages/ForwardPage.java
URL: http://svn.apache.org/viewvc/click/trunk/click/mock/test/org/apache/click/pages/ForwardPage.java?rev=958365&r1=958364&r2=958365&view=diff
==============================================================================
--- click/trunk/click/mock/test/org/apache/click/pages/ForwardPage.java (original)
+++ click/trunk/click/mock/test/org/apache/click/pages/ForwardPage.java Sun Jun 27 11:19:13
2010
@@ -25,17 +25,21 @@ import org.apache.click.*;
  */
 public class ForwardPage extends Page {
 
+    public static final String ID_VALUE = "200";
+
     /**
      * Initialize page.
      */
+    @Override
     public void onInit() {
-        getContext().setRequestAttribute("id", "200");
+        getContext().setRequestAttribute("id", ID_VALUE);
         addModel("myparam", getContext().getRequestParameter("myparam"));
     }
 
     /**
      * onPost event handler.
      */
+    @Override
     public void onPost() {
         setForward(TestPage.class);
     }

Modified: click/trunk/click/mock/test/org/apache/click/pages/RedirectPage.java
URL: http://svn.apache.org/viewvc/click/trunk/click/mock/test/org/apache/click/pages/RedirectPage.java?rev=958365&r1=958364&r2=958365&view=diff
==============================================================================
--- click/trunk/click/mock/test/org/apache/click/pages/RedirectPage.java (original)
+++ click/trunk/click/mock/test/org/apache/click/pages/RedirectPage.java Sun Jun 27 11:19:13
2010
@@ -25,17 +25,21 @@ import org.apache.click.*;
  */
 public class RedirectPage extends Page {
 
+    public static final String ID_VALUE = "200";
+
     /**
      * Initialize page.
      */
+    @Override
     public void onInit() {
-        getContext().setRequestAttribute("id", "200");
+        getContext().setRequestAttribute("id", ID_VALUE);
         addModel("myparam", getContext().getRequestParameter("myparam"));
     }
 
     /**
      * onPost event handler.
      */
+    @Override
     public void onPost() {
         setRedirect(TestPage.class);
     }

Modified: click/trunk/click/mock/test/org/apache/click/pages/TestPage.java
URL: http://svn.apache.org/viewvc/click/trunk/click/mock/test/org/apache/click/pages/TestPage.java?rev=958365&r1=958364&r2=958365&view=diff
==============================================================================
--- click/trunk/click/mock/test/org/apache/click/pages/TestPage.java (original)
+++ click/trunk/click/mock/test/org/apache/click/pages/TestPage.java Sun Jun 27 11:19:13 2010
@@ -25,11 +25,14 @@ import org.apache.click.*;
  */
 public class TestPage extends Page {
 
+    public static final String ID_VALUE = "200";
+
     /**
      * Initialize page.
      */
+    @Override
     public void onInit() {
-        getContext().setRequestAttribute("id", "200");
+        getContext().setRequestAttribute("id", ID_VALUE);
         addModel("myparam", getContext().getRequestParameter("myparam"));
     }
 }



Mime
View raw message