Return-Path:
Delivered-To: apmail-incubator-click-commits-archive@locus.apache.org
Received: (qmail 40950 invoked from network); 5 Jan 2009 13:05:08 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2)
by minotaur.apache.org with SMTP; 5 Jan 2009 13:05:08 -0000
Received: (qmail 83250 invoked by uid 500); 5 Jan 2009 13:05:08 -0000
Delivered-To: apmail-incubator-click-commits-archive@incubator.apache.org
Received: (qmail 83234 invoked by uid 500); 5 Jan 2009 13:05:08 -0000
Mailing-List: contact click-commits-help@incubator.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: click-dev@incubator.apache.org
Delivered-To: mailing list click-commits@incubator.apache.org
Received: (qmail 83223 invoked by uid 99); 5 Jan 2009 13:05:07 -0000
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 05:05:07 -0800
X-ASF-Spam-Status: No, hits=-2000.0 required=10.0
tests=ALL_TRUSTED
X-Spam-Check-By: apache.org
Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 13:05:06 +0000
Received: by eris.apache.org (Postfix, from userid 65534)
id 12093238899A; Mon, 5 Jan 2009 05:04:46 -0800 (PST)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r731548 - in /incubator/click/trunk/click/mock: src/org/
src/org/apache/ src/org/apache/click/ src/org/apache/click/servlet/
test/org/ test/org/apache/ test/org/apache/click/
test/org/apache/click/pages/ test/org/apache/click/servlet/ test/...
Date: Mon, 05 Jan 2009 13:04:45 -0000
To: click-commits@incubator.apache.org
From: sabob@apache.org
X-Mailer: svnmailer-1.0.8
Message-Id: <20090105130446.12093238899A@eris.apache.org>
X-Virus-Checked: Checked by ClamAV on apache.org
Author: sabob
Date: Mon Jan 5 05:04:44 2009
New Revision: 731548
URL: http://svn.apache.org/viewvc?rev=731548&view=rev
Log:
migrated mock to Apache namespace
Added:
incubator/click/trunk/click/mock/src/org/
incubator/click/trunk/click/mock/src/org/apache/
incubator/click/trunk/click/mock/src/org/apache/click/
incubator/click/trunk/click/mock/src/org/apache/click/MockContainer.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/src/net/sf/click/MockContainer.java
incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/src/net/sf/click/MockContext.java
incubator/click/trunk/click/mock/src/org/apache/click/package.html (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/src/net/sf/click/package.html
incubator/click/trunk/click/mock/src/org/apache/click/servlet/
incubator/click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/src/net/sf/click/servlet/MockRequest.java
incubator/click/trunk/click/mock/src/org/apache/click/servlet/MockRequestDispatcher.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/src/net/sf/click/servlet/MockRequestDispatcher.java
incubator/click/trunk/click/mock/src/org/apache/click/servlet/MockResponse.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/src/net/sf/click/servlet/MockResponse.java
incubator/click/trunk/click/mock/src/org/apache/click/servlet/MockServletConfig.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/src/net/sf/click/servlet/MockServletConfig.java
incubator/click/trunk/click/mock/src/org/apache/click/servlet/MockServletContext.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/src/net/sf/click/servlet/MockServletContext.java
incubator/click/trunk/click/mock/src/org/apache/click/servlet/MockSession.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/src/net/sf/click/servlet/MockSession.java
incubator/click/trunk/click/mock/src/org/apache/click/servlet/package.html (props changed)
- copied unchanged from r729543, incubator/click/trunk/click/mock/src/net/sf/click/servlet/package.html
incubator/click/trunk/click/mock/test/org/
incubator/click/trunk/click/mock/test/org/apache/
incubator/click/trunk/click/mock/test/org/apache/click/
incubator/click/trunk/click/mock/test/org/apache/click/MockContainerTest.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/test/net/sf/click/MockContainerTest.java
incubator/click/trunk/click/mock/test/org/apache/click/MockContextTest.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/test/net/sf/click/MockContextTest.java
incubator/click/trunk/click/mock/test/org/apache/click/MockRequestTest.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/test/net/sf/click/MockRequestTest.java
incubator/click/trunk/click/mock/test/org/apache/click/pages/
incubator/click/trunk/click/mock/test/org/apache/click/pages/BorderPage.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/test/net/sf/click/pages/BorderPage.java
incubator/click/trunk/click/mock/test/org/apache/click/pages/BorderTestPage.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/test/net/sf/click/pages/BorderTestPage.java
incubator/click/trunk/click/mock/test/org/apache/click/pages/FormPage.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/test/net/sf/click/pages/FormPage.java
incubator/click/trunk/click/mock/test/org/apache/click/pages/ForwardPage.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/test/net/sf/click/pages/ForwardPage.java
incubator/click/trunk/click/mock/test/org/apache/click/pages/RedirectPage.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/test/net/sf/click/pages/RedirectPage.java
incubator/click/trunk/click/mock/test/org/apache/click/pages/TestPage.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/test/net/sf/click/pages/TestPage.java
incubator/click/trunk/click/mock/test/org/apache/click/servlet/
incubator/click/trunk/click/mock/test/org/apache/click/servlet/MockTests.java (contents, props changed)
- copied, changed from r729543, incubator/click/trunk/click/mock/test/net/sf/click/servlet/MockTests.java
Modified:
incubator/click/trunk/click/mock/test/web/WEB-INF/click.xml
Copied: incubator/click/trunk/click/mock/src/org/apache/click/MockContainer.java (from r729543, incubator/click/trunk/click/mock/src/net/sf/click/MockContainer.java)
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/mock/src/org/apache/click/MockContainer.java?p2=incubator/click/trunk/click/mock/src/org/apache/click/MockContainer.java&p1=incubator/click/trunk/click/mock/src/net/sf/click/MockContainer.java&r1=729543&r2=731548&rev=731548&view=diff
==============================================================================
--- incubator/click/trunk/click/mock/src/net/sf/click/MockContainer.java (original)
+++ incubator/click/trunk/click/mock/src/org/apache/click/MockContainer.java Mon Jan 5 05:04:44 2009
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package net.sf.click;
+package org.apache.click;
-import net.sf.click.servlet.MockServletContext;
-import net.sf.click.servlet.MockServletConfig;
-import net.sf.click.servlet.MockResponse;
-import net.sf.click.servlet.MockRequest;
+import org.apache.click.servlet.MockServletContext;
+import org.apache.click.servlet.MockServletConfig;
+import org.apache.click.servlet.MockResponse;
+import org.apache.click.servlet.MockRequest;
import java.io.File;
import java.io.PrintStream;
import java.io.PrintWriter;
@@ -31,7 +31,7 @@
import java.util.Map.Entry;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
-import net.sf.click.servlet.MockSession;
+import org.apache.click.servlet.MockSession;
import org.apache.commons.lang.StringUtils;
/**
@@ -154,7 +154,7 @@
// -------------------------------------------------------- Public getters/setters
/**
- * Return the container {@link net.sf.click.servlet.MockRequest}.
+ * Return the container {@link org.apache.click.servlet.MockRequest}.
*
* @return the container MockRequest
*/
@@ -163,7 +163,7 @@
}
/**
- * Set the container {@link net.sf.click.servlet.MockRequest}.
+ * Set the container {@link org.apache.click.servlet.MockRequest}.
*
* @param request the container MockRequest
*/
@@ -172,7 +172,7 @@
}
/**
- * Return the container {@link net.sf.click.servlet.MockResponse}.
+ * Return the container {@link org.apache.click.servlet.MockResponse}.
*
* @return the container MockResponse
*/
@@ -181,7 +181,7 @@
}
/**
- * Set the container {@link net.sf.click.servlet.MockResponse}.
+ * Set the container {@link org.apache.click.servlet.MockResponse}.
*
* @param response the container MockResponse
*/
@@ -190,7 +190,7 @@
}
/**
- * Return the container {@link net.sf.click.ClickServlet}.
+ * Return the container {@link org.apache.click.ClickServlet}.
*
* @return the container ClickServlet
*/
@@ -199,7 +199,7 @@
}
/**
- * Set the container {@link net.sf.click.ClickServlet}.
+ * Set the container {@link org.apache.click.ClickServlet}.
*
* @param clickServlet the container ClickServlet
*/
@@ -208,7 +208,7 @@
}
/**
- * Return the container {@link net.sf.click.servlet.MockServletConfig}.
+ * Return the container {@link org.apache.click.servlet.MockServletConfig}.
*
* @return the container MockServletConfig
*/
@@ -217,7 +217,7 @@
}
/**
- * Set the container {@link net.sf.click.servlet.MockServletConfig}.
+ * Set the container {@link org.apache.click.servlet.MockServletConfig}.
*
* @param servletConfig the container MockServletConfig
*/
@@ -226,7 +226,7 @@
}
/**
- * Return the container {@link net.sf.click.servlet.MockServletContext}.
+ * Return the container {@link org.apache.click.servlet.MockServletContext}.
*
* @return the container MockServletContext
*/
@@ -235,7 +235,7 @@
}
/**
- * Set the container {@link net.sf.click.servlet.MockServletContext}.
+ * Set the container {@link org.apache.click.servlet.MockServletContext}.
*
* @param servletContext the container MockServletContext
*/
@@ -244,7 +244,7 @@
}
/**
- * Return the container {@link net.sf.click.servlet.MockSession}.
+ * Return the container {@link org.apache.click.servlet.MockSession}.
*
* @return the container MockSession
*/
@@ -253,7 +253,7 @@
}
/**
- * Set the container {@link net.sf.click.servlet.MockSession}.
+ * Set the container {@link org.apache.click.servlet.MockSession}.
*
* @param session the container MockSession
*/
@@ -265,22 +265,22 @@
/**
* Starts the container and configure it for testing
- * {@link net.sf.click.Page} instances.
+ * {@link org.apache.click.Page} instances.
*
* During configuration a full mock servlet stack is created consisting of:
*
- * - {@link net.sf.click.ClickServlet}
- * - {@link net.sf.click.servlet.MockRequest}
- * - {@link net.sf.click.servlet.MockResponse}
- * - {@link net.sf.click.servlet.MockServletContext}
- * - {@link net.sf.click.servlet.MockServletConfig}
- * - {@link net.sf.click.servlet.MockSession}
- * - {@link net.sf.click.MockContext}
+ * - {@link org.apache.click.ClickServlet}
+ * - {@link org.apache.click.servlet.MockRequest}
+ * - {@link org.apache.click.servlet.MockResponse}
+ * - {@link org.apache.click.servlet.MockServletContext}
+ * - {@link org.apache.click.servlet.MockServletConfig}
+ * - {@link org.apache.click.servlet.MockSession}
+ * - {@link org.apache.click.MockContext}
*
*
* You can provide your own Mock implementations and set them on the
* container using the appropriate setter method for example:
- * {@link #setRequest(net.sf.click.servlet.MockRequest)}.
+ * {@link #setRequest(org.apache.click.servlet.MockRequest)}.
*
* Please note that you must set the mock objects on the container
* before calling start().
@@ -326,7 +326,7 @@
}
/**
- * Convenience method for setting the {@link net.sf.click.servlet.MockRequest}
+ * Convenience method for setting the {@link org.apache.click.servlet.MockRequest}
* attribute.
*
* Note this method returns this so you can easily chain
@@ -350,7 +350,7 @@
}
/**
- * Convenience method for setting the {@link net.sf.click.servlet.MockRequest}
+ * Convenience method for setting the {@link org.apache.click.servlet.MockRequest}
* parameter.
*
* Note this method returns this so you can easily chain
@@ -375,7 +375,7 @@
}
/**
- * Convenience method for setting multi-valued {@link net.sf.click.servlet.MockRequest}
+ * Convenience method for setting multi-valued {@link org.apache.click.servlet.MockRequest}
* parameters.
*
* Note this method returns this so you can easily chain
@@ -455,7 +455,7 @@
* This method simulates a browser requesting (GET) or submitting (POST)
* the url associated with the specified pageClass and request parameters.
*
- * The container forwards the request to {@link net.sf.click.ClickServlet}
+ * The container forwards the request to {@link org.apache.click.ClickServlet}
* for processing and returns the Page instance that was created.
*
* @param pageClass specifies the class of the Page to test
@@ -537,8 +537,8 @@
* {@link javax.servlet.HttpResponse}.
*
* Please note: if the Page invokes
- * {@link net.sf.click.Page#setForward(Class)} or
- * {@link net.sf.click.Page#setRedirect(Class)}, this method will
+ * {@link org.apache.click.Page#setForward(Class)} or
+ * {@link org.apache.click.Page#setRedirect(Class)}, this method will
* return blank.
*
* The reason for this is that forward and redirect calls
@@ -547,7 +547,7 @@
* The forward and redirect path's are only used for assertion purposes.
*
* JSP templates is not supported by this method because a JSP template
- * is always accessed through a {@link net.sf.click.Page#setForward(Class)}
+ * is always accessed through a {@link org.apache.click.Page#setForward(Class)}
* call.
*
* @return the rendered html document
@@ -578,7 +578,7 @@
}
/**
- * Return the path that {@link net.sf.click.Page} forwarded to.
+ * Return the path that {@link org.apache.click.Page} forwarded to.
*
* @return the path that Page forwarded to
*/
@@ -587,7 +587,7 @@
}
/**
- * Return the Class that {@link net.sf.click.Page} forwarded to.
+ * Return the Class that {@link org.apache.click.Page} forwarded to.
*
* @return the class that Page forwarded to
*/
@@ -603,7 +603,7 @@
}
/**
- * Return the path that {@link net.sf.click.Page} redirected to.
+ * Return the path that {@link org.apache.click.Page} redirected to.
*
* @return the path that Page redirected to
*/
@@ -612,7 +612,7 @@
}
/**
- * Return the Class that {@link net.sf.click.Page} redirected to.
+ * Return the Class that {@link org.apache.click.Page} redirected to.
*
* @return the Class that Page redirected to
*/
@@ -652,7 +652,7 @@
// -------------------------------------------------------- Package private methods
/**
- * Removes any {@link net.sf.click.Context} instances from the ThradLocal
+ * Removes any {@link org.apache.click.Context} instances from the ThradLocal
* ContextStack.
*
* @see #start()
Propchange: incubator/click/trunk/click/mock/src/org/apache/click/MockContainer.java
------------------------------------------------------------------------------
svn:mergeinfo =
Copied: incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java (from r729543, incubator/click/trunk/click/mock/src/net/sf/click/MockContext.java)
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java?p2=incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java&p1=incubator/click/trunk/click/mock/src/net/sf/click/MockContext.java&r1=729543&r2=731548&rev=731548&view=diff
==============================================================================
--- incubator/click/trunk/click/mock/src/net/sf/click/MockContext.java (original)
+++ incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java Mon Jan 5 05:04:44 2009
@@ -16,23 +16,23 @@
* specific language governing permissions and limitations
* under the License.
*/
-package net.sf.click;
+package org.apache.click;
-import net.sf.click.servlet.MockServletConfig;
-import net.sf.click.servlet.MockResponse;
-import net.sf.click.servlet.MockRequest;
+import org.apache.click.servlet.MockServletConfig;
+import org.apache.click.servlet.MockResponse;
+import org.apache.click.servlet.MockRequest;
import java.util.Locale;
import javax.servlet.ServletConfig;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import net.sf.click.service.ConsoleLogService;
-import net.sf.click.servlet.MockServletContext;
-import net.sf.click.servlet.MockSession;
-import net.sf.click.util.ClickUtils;
+import org.apache.click.service.ConsoleLogService;
+import org.apache.click.servlet.MockServletContext;
+import org.apache.click.servlet.MockSession;
+import org.apache.click.util.ClickUtils;
/**
- * Provides a mock {@link net.sf.click.Context} object for unit testing.
+ * Provides a mock {@link org.apache.click.Context} object for unit testing.
*
* Note: if you want to test your Click Page instances use
* {@link MockContainer} instead.
@@ -112,7 +112,7 @@
// --------------------------------------------------------- Public getters and setters
/**
- * Return the mock {@link net.sf.click.ClickServlet} instance for this
+ * Return the mock {@link org.apache.click.ClickServlet} instance for this
* context.
*
* @return the clickServlet instance
@@ -122,7 +122,7 @@
}
/**
- * Return the {@link net.sf.click.servlet.MockRequest} instance for this
+ * Return the {@link org.apache.click.servlet.MockRequest} instance for this
* context.
*
* @return the MockRequest instance
Propchange: incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/click/trunk/click/mock/src/org/apache/click/MockContext.java
------------------------------------------------------------------------------
svn:mergeinfo =
Copied: incubator/click/trunk/click/mock/src/org/apache/click/package.html (from r729543, incubator/click/trunk/click/mock/src/net/sf/click/package.html)
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/mock/src/org/apache/click/package.html?p2=incubator/click/trunk/click/mock/src/org/apache/click/package.html&p1=incubator/click/trunk/click/mock/src/net/sf/click/package.html&r1=729543&r2=731548&rev=731548&view=diff
==============================================================================
--- incubator/click/trunk/click/mock/src/net/sf/click/package.html (original)
+++ incubator/click/trunk/click/mock/src/org/apache/click/package.html Mon Jan 5 05:04:44 2009
@@ -21,13 +21,13 @@
Provides a mock package for Click, enabling unit testing of Pages and Controls.
This package defines the main mock classes but developers only have to be concerned
-with two classes namely {@link net.sf.click.MockContainer} and
-{@link net.sf.click.MockContext}.
+with two classes namely {@link org.apache.click.MockContainer} and
+{@link org.apache.click.MockContext}.
-The main class developers will use is {@link net.sf.click.MockContainer} which
+The main class developers will use is {@link org.apache.click.MockContainer} which
provides mocking mocking of application pages and controls.
-The class {@link net.sf.click.MockContext} provides mocking of
-{@link net.sf.click.Control}s and is easier to setup and use than
-{@link net.sf.click.MockContainer}.
+The class {@link org.apache.click.MockContext} provides mocking of
+{@link org.apache.click.Control}s and is easier to setup and use than
+{@link org.apache.click.MockContainer}.