You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/08/28 20:48:09 UTC
svn commit: r990406 [2/2] - in /myfaces/test/trunk:
test12/src/main/java/org/apache/myfaces/test/base/
test12/src/main/java/org/apache/myfaces/test/base/junit4/
test12/src/main/java/org/apache/myfaces/test/cargo/
test12/src/main/java/org/apache/myfaces...
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_ApplicationMap.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_ApplicationMap.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_ApplicationMap.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_ApplicationMap.java Sat Aug 28 18:48:06 2010
@@ -29,8 +29,9 @@ import javax.servlet.ServletContext;
*
* @author Anton Koinov (latest modification by $Author: slessard $)
* @version $Revision: 701829 $ $Date: 2008-10-05 19:06:02 +0200 (So, 05 Okt 2008) $
+ * @since 1.0.0
*/
-public final class _ApplicationMap extends _AbstractAttributeMap<Object>
+final class _ApplicationMap extends _AbstractAttributeMap<Object>
{
final ServletContext _servletContext;
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_CookieMap.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_CookieMap.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_CookieMap.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_CookieMap.java Sat Aug 28 18:48:06 2010
@@ -31,8 +31,9 @@ import javax.servlet.http.HttpServletReq
* @author Dimitry D'hondt
* @author Anton Koinov
* @version $Revision: 701829 $ $Date: 2008-10-05 19:06:02 +0200 (So, 05 Okt 2008) $
+ * @since 1.0.0
*/
-public final class _CookieMap extends _AbstractAttributeMap<Object>
+final class _CookieMap extends _AbstractAttributeMap<Object>
{
private static final Cookie[] EMPTY_ARRAY = new Cookie[0];
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_Hex.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_Hex.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_Hex.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_Hex.java Sat Aug 28 18:48:06 2010
@@ -23,7 +23,7 @@ import java.io.UnsupportedEncodingExcept
* Hex encoder and decoder. The charset used for certain operation can be set, the default is set in
* {@link #DEFAULT_CHARSET_NAME}
*
- * @since 1.1
+ * @since 1.0.0
* @author Apache Software Foundation
* @version $Id: Hex.java 801639 2009-08-06 13:15:10Z niallp $
*/
@@ -100,7 +100,6 @@ class _Hex {
* @param toLowerCase
* <code>true</code> converts to lowercase, <code>false</code> to uppercase
* @return A char[] containing hexadecimal characters
- * @since 1.4
*/
public static char[] encodeHex(byte[] data, boolean toLowerCase) {
return encodeHex(data, toLowerCase ? DIGITS_LOWER : DIGITS_UPPER);
@@ -116,7 +115,6 @@ class _Hex {
* @param toDigits
* the output alphabet
* @return A char[] containing hexadecimal characters
- * @since 1.4
*/
protected static char[] encodeHex(byte[] data, char[] toDigits) {
int l = data.length;
@@ -136,7 +134,6 @@ class _Hex {
* @param data
* a byte[] to convert to Hex characters
* @return A String containing hexadecimal characters
- * @since 1.4
*/
public static String encodeHexString(byte[] data) {
return new String(encodeHex(data));
@@ -176,7 +173,6 @@ class _Hex {
*
* @param csName
* the charset name.
- * @since 1.4
*/
public _Hex(String csName) {
this.charsetName = csName;
@@ -293,7 +289,6 @@ class _Hex {
* Gets the charset name.
*
* @return the charset name.
- * @since 1.4
*/
public String getCharsetName() {
return this.charsetName;
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_InitParameterMap.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_InitParameterMap.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_InitParameterMap.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_InitParameterMap.java Sat Aug 28 18:48:06 2010
@@ -29,8 +29,9 @@ import javax.servlet.ServletContext;
*
* @author Anton Koinov (latest modification by $Author: slessard $)
* @version $Revision: 701829 $ $Date: 2008-10-05 19:06:02 +0200 (So, 05 Okt 2008) $
+ * @since 1.0.0
*/
-public final class _InitParameterMap extends _AbstractAttributeMap<String>
+final class _InitParameterMap extends _AbstractAttributeMap<String>
{
private final ServletContext _servletContext;
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_NullEnumeration.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_NullEnumeration.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_NullEnumeration.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_NullEnumeration.java Sat Aug 28 18:48:06 2010
@@ -26,6 +26,7 @@ import java.util.NoSuchElementException;
*
* @author Anton Koinov (latest modification by $Author: matzew $)
* @version $Revision: 557350 $ $Date: 2007-07-18 13:19:50 -0500 (Mié, 18 Jul 2007) $
+ * @since 1.0.0
*/
final class _NullEnumeration implements Enumeration
{
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestHeaderMap.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestHeaderMap.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestHeaderMap.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestHeaderMap.java Sat Aug 28 18:48:06 2010
@@ -29,8 +29,9 @@ import javax.servlet.http.HttpServletReq
*
* @author Anton Koinov (latest modification by $Author: slessard $)
* @version $Revision: 698799 $ $Date: 2008-09-25 04:03:47 +0200 (Do, 25 Sep 2008) $
+ * @since 1.0.0
*/
-public final class _RequestHeaderMap extends _AbstractAttributeMap<String>
+final class _RequestHeaderMap extends _AbstractAttributeMap<String>
{
private final HttpServletRequest _httpServletRequest;
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestHeaderValuesMap.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestHeaderValuesMap.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestHeaderValuesMap.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestHeaderValuesMap.java Sat Aug 28 18:48:06 2010
@@ -31,8 +31,9 @@ import javax.servlet.http.HttpServletReq
*
* @author Anton Koinov (latest modification by $Author: slessard $)
* @version $Revision: 701829 $ $Date: 2008-10-05 19:06:02 +0200 (So, 05 Okt 2008) $
+ * @since 1.0.0
*/
-public final class _RequestHeaderValuesMap extends _AbstractAttributeMap<String[]>
+final class _RequestHeaderValuesMap extends _AbstractAttributeMap<String[]>
{
private final HttpServletRequest _httpServletRequest;
private final Map<String, String[]> _valueCache = new HashMap<String, String[]>();
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestMap.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestMap.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestMap.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestMap.java Sat Aug 28 18:48:06 2010
@@ -29,8 +29,9 @@ import javax.servlet.ServletRequest;
*
* @author Anton Koinov (latest modification by $Author: slessard $)
* @version $Revision: 698799 $ $Date: 2008-09-25 04:03:47 +0200 (Do, 25 Sep 2008) $
+ * @since 1.0.0
*/
-public final class _RequestMap extends _AbstractAttributeMap<Object>
+final class _RequestMap extends _AbstractAttributeMap<Object>
{
final ServletRequest _servletRequest;
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestParameterMap.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestParameterMap.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestParameterMap.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestParameterMap.java Sat Aug 28 18:48:06 2010
@@ -27,8 +27,9 @@ import javax.servlet.ServletRequest;
*
* @author Anton Koinov (latest modification by $Author: lu4242 $)
* @version $Revision: 695059 $ $Date: 2008-09-14 01:10:53 +0200 (So, 14 Sep 2008) $
+ * @since 1.0.0
*/
-public final class _RequestParameterMap extends _AbstractAttributeMap<String>
+final class _RequestParameterMap extends _AbstractAttributeMap<String>
{
private final ServletRequest _servletRequest;
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestParameterValuesMap.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestParameterValuesMap.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestParameterValuesMap.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_RequestParameterValuesMap.java Sat Aug 28 18:48:06 2010
@@ -27,8 +27,9 @@ import javax.servlet.ServletRequest;
*
* @author Anton Koinov (latest modification by $Author: lu4242 $)
* @version $Revision: 695059 $ $Date: 2008-09-14 01:10:53 +0200 (So, 14 Sep 2008) $
+ * @since 1.0.0
*/
-public final class _RequestParameterValuesMap extends _AbstractAttributeMap<String[]>
+final class _RequestParameterValuesMap extends _AbstractAttributeMap<String[]>
{
private final ServletRequest _servletRequest;
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_SessionMap.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_SessionMap.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_SessionMap.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/_SessionMap.java Sat Aug 28 18:48:06 2010
@@ -30,8 +30,9 @@ import javax.servlet.http.HttpSession;
*
* @author Anton Koinov (latest modification by $Author: jakobk $)
* @version $Revision: 979229 $ $Date: 2010-07-26 12:26:53 +0200 (Mo, 26 Jul 2010) $
+ * @since 1.0.0
*/
-public final class _SessionMap extends _AbstractAttributeMap<Object>
+final class _SessionMap extends _AbstractAttributeMap<Object>
{
private final HttpServletRequest _httpRequest;
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/ApplyRequestValuesExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/ApplyRequestValuesExecutor.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/ApplyRequestValuesExecutor.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/ApplyRequestValuesExecutor.java Sat Aug 28 18:48:06 2010
@@ -22,9 +22,11 @@ import javax.faces.event.PhaseId;
/**
* Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
- * @author Nikolay Petrov
*
* Apply request values phase (JSF Spec 2.2.2)
+ *
+ * @author Nikolay Petrov
+ * @since 1.0.0
*/
class ApplyRequestValuesExecutor implements PhaseExecutor {
public boolean execute(FacesContext facesContext) {
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/DefaultRestoreViewSupport.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/DefaultRestoreViewSupport.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/DefaultRestoreViewSupport.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/DefaultRestoreViewSupport.java Sat Aug 28 18:48:06 2010
@@ -32,6 +32,7 @@ import org.apache.commons.logging.LogFac
/**
* @author Mathias Broekelmann (latest modification by $Author: mbr $)
* @version $Revision: 517403 $ $Date: 2007-03-12 22:17:00 +0100 (Mo, 12 Mrz 2007) $
+ * @since 1.0.0
*/
public class DefaultRestoreViewSupport implements RestoreViewSupport
{
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/InvokeApplicationExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/InvokeApplicationExecutor.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/InvokeApplicationExecutor.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/InvokeApplicationExecutor.java Sat Aug 28 18:48:06 2010
@@ -22,9 +22,11 @@ import javax.faces.event.PhaseId;
/**
* Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
- * @author Nikolay Petrov
*
* Invoke application phase (JSF Spec 2.2.5)
+ *
+ * @author Nikolay Petrov
+ * @since 1.0.0
*/
class InvokeApplicationExecutor implements PhaseExecutor {
public boolean execute(FacesContext facesContext) {
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/MockLifecycle.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/MockLifecycle.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/MockLifecycle.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/MockLifecycle.java Sat Aug 28 18:48:06 2010
@@ -29,6 +29,7 @@ import javax.faces.lifecycle.Lifecycle;
* <p>Mock implementation of <code>Lifecycle</code>.</p>
*
* $Id$
+ * @since 1.0.0
*/
public class MockLifecycle extends Lifecycle {
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/MockLifecycleFactory.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/MockLifecycleFactory.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/MockLifecycleFactory.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/MockLifecycleFactory.java Sat Aug 28 18:48:06 2010
@@ -28,6 +28,7 @@ import javax.faces.lifecycle.LifecycleFa
* <p>Mock implementation of <code>LifecycleFactory</code>.</p>
*
* $Id$
+ * @since 1.0.0
*/
public class MockLifecycleFactory extends LifecycleFactory {
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/PhaseExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/PhaseExecutor.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/PhaseExecutor.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/PhaseExecutor.java Sat Aug 28 18:48:06 2010
@@ -27,6 +27,7 @@ import javax.faces.event.PhaseId;
* Implements the PhaseExecutor for a lifecycle
*
* @author Nikolay Petrov
+ * @since 1.0.0
*
*/
interface PhaseExecutor {
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/PhaseListenerManager.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/PhaseListenerManager.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/PhaseListenerManager.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/PhaseListenerManager.java Sat Aug 28 18:48:06 2010
@@ -33,6 +33,7 @@ import org.apache.commons.logging.LogFac
* details.
*
* @author Stan Silvert
+ * @since 1.0.0
*/
class PhaseListenerManager {
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/ProcessValidationsExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/ProcessValidationsExecutor.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/ProcessValidationsExecutor.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/ProcessValidationsExecutor.java Sat Aug 28 18:48:06 2010
@@ -22,9 +22,10 @@ import javax.faces.event.PhaseId;
/**
* Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
- * @author Nikolay Petrov
*
* Process validations phase (JSF Spec 2.2.3)
+ * @author Nikolay Petrov
+ * @since 1.0.0
*/
class ProcessValidationsExecutor implements PhaseExecutor {
public boolean execute(FacesContext facesContext) {
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/RenderResponseExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/RenderResponseExecutor.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/RenderResponseExecutor.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/RenderResponseExecutor.java Sat Aug 28 18:48:06 2010
@@ -27,9 +27,11 @@ import javax.faces.event.PhaseId;
/**
* Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
- * @author Nikolay Petrov
*
* render response phase (JSF Spec 2.2.6)
+ *
+ * @author Nikolay Petrov
+ * @since 1.0.0
*/
class RenderResponseExecutor implements PhaseExecutor {
public boolean execute(FacesContext facesContext) {
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/RestoreViewExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/RestoreViewExecutor.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/RestoreViewExecutor.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/RestoreViewExecutor.java Sat Aug 28 18:48:06 2010
@@ -35,7 +35,7 @@ import org.apache.commons.logging.LogFac
* @author Nikolay Petrov
* @author Bruno Aranda (JSF 1.2)
* @version $Revision: 517403 $ $Date: 2007-03-12 22:17:00 +0100 (Mo, 12 Mrz 2007) $
- *
+ * @since 1.0.0
*/
class RestoreViewExecutor implements PhaseExecutor
{
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/RestoreViewSupport.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/RestoreViewSupport.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/RestoreViewSupport.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/RestoreViewSupport.java Sat Aug 28 18:48:06 2010
@@ -27,6 +27,7 @@ import javax.faces.context.FacesContext;
*
* @author Mathias Broekelmann (latest modification by $Author: mbr $)
* @version $Revision: 517403 $ $Date: 2007-03-12 22:17:00 +0100 (Mo, 12 Mrz 2007) $
+ * @since 1.0.0
*/
public interface RestoreViewSupport
{
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/UpdateModelValuesExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/UpdateModelValuesExecutor.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/UpdateModelValuesExecutor.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/lifecycle/UpdateModelValuesExecutor.java Sat Aug 28 18:48:06 2010
@@ -23,9 +23,11 @@ import javax.faces.event.PhaseId;
/**
* Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
- * @author Nikolay Petrov
*
* Update model values phase (JSF Spec 2.2.4)
+ *
+ * @author Nikolay Petrov
+ * @since 1.0.0
*/
class UpdateModelValuesExecutor implements PhaseExecutor {
public boolean execute(FacesContext facesContext) {
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/runners/NamedRunner.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/runners/NamedRunner.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/runners/NamedRunner.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/runners/NamedRunner.java Sat Aug 28 18:48:06 2010
@@ -26,6 +26,7 @@ import org.junit.runners.model.Initializ
* (but also the Test method itself) can request this name for which it is running.
*
* @author Rudy De Busscher
+ * @since 1.0.0
*/
public class NamedRunner extends BlockJUnit4ClassRunner
{
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/runners/TestClassLoader.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/runners/TestClassLoader.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/runners/TestClassLoader.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/runners/TestClassLoader.java Sat Aug 28 18:48:06 2010
@@ -35,6 +35,7 @@ import java.util.zip.ZipFile;
* Useful for a system that sets up a classloader per Test system.
*
* @author Rudy De Busscher
+ * @since 1.0.0
*/
public class TestClassLoader extends ClassLoader
{
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/runners/TestPerClassLoaderRunner.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/runners/TestPerClassLoaderRunner.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/runners/TestPerClassLoaderRunner.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/runners/TestPerClassLoaderRunner.java Sat Aug 28 18:48:06 2010
@@ -45,7 +45,7 @@ import org.junit.runners.model.TestClass
* also the final ones, are reinitialized.
*
* @author Rudy De Busscher
-
+ * @since 1.0.0
*/
public class TestPerClassLoaderRunner extends NamedRunner
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/base/AbstractJsfTestCase.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/base/AbstractJsfTestCase.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/base/AbstractJsfTestCase.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/base/AbstractJsfTestCase.java Sat Aug 28 18:48:06 2010
@@ -61,7 +61,7 @@ import org.apache.myfaces.test.mock.life
* <p>In addition, appropriate factory classes will have been registered with
* <code>javax.faces.FactoryFinder</code> for <code>Application</code> and
* <code>RenderKit</code> instances. The created <code>FacesContext</code>
- * instance will also have been registered in the apppriate thread local
+ * instance will also have been registered in the proper thread local
* variable, to simulate what a servlet container would do.</p>
*
* <p><strong>WARNING</strong> - If you choose to subclass this class, be sure
@@ -69,6 +69,8 @@ import org.apache.myfaces.test.mock.life
* <code>super.setUp()</code> and <code>super.tearDown()</code> respectively,
* and that you implement your own <code>suite()</code> method that exposes
* the test methods for your test case.</p>
+ *
+ * @since 1.0.0
*/
public abstract class AbstractJsfTestCase extends TestCase {
@@ -111,6 +113,21 @@ public abstract class AbstractJsfTestCas
setUpJSFObjects();
}
+ /**
+ * <p>Setup JSF object used for the test. By default it calls to the following
+ * methods in this order:</p>
+ *
+ * <ul>
+ * <li><code>setUpExternalContext();</code></li>
+ * <li><code>setUpLifecycle();</code></li>
+ * <li><code>setUpFacesContext();</code></li>
+ * <li><code>setUpView();</code></li>
+ * <li><code>setUpApplication();</code></li>
+ * <li><code>setUpRenderKit();</code></li>
+ * </ul>
+ *
+ * @throws Exception
+ */
protected void setUpJSFObjects() throws Exception
{
setUpExternalContext();
@@ -121,6 +138,19 @@ public abstract class AbstractJsfTestCas
setUpRenderKit();
}
+ /**
+ * <p>Setup servlet objects that will be used for the test:</p>
+ *
+ * <ul>
+ * <li><code>config</code> (<code>MockServletConfig</code>)</li>
+ * <li><code>servletContext</code> (<code>MockServletContext</code>)</li>
+ * <li><code>request</code> (<code>MockHttpServletRequest</code></li>
+ * <li><code>response</code> (<code>MockHttpServletResponse</code>)</li>
+ * <li><code>session</code> (<code>MockHttpSession</code>)</li>
+ * </ul>
+ *
+ * @throws Exception
+ */
protected void setUpServletObjects() throws Exception
{
servletContext = new MockServletContext();
@@ -132,6 +162,11 @@ public abstract class AbstractJsfTestCas
response = new MockHttpServletResponse();
}
+ /**
+ * <p>Set JSF factories using FactoryFinder method setFactory.</p>
+ *
+ * @throws Exception
+ */
protected void setFactories() throws Exception
{
FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY,
@@ -149,13 +184,25 @@ public abstract class AbstractJsfTestCas
FactoryFinder.setFactory(FactoryFinder.VISIT_CONTEXT_FACTORY,
"org.apache.myfaces.test.mock.visit.MockVisitContextFactory");
}
-
+
+ /**
+ * Setup the <code>externalContext</code> variable, using the
+ * servlet variables already initialized.
+ *
+ * @throws Exception
+ */
protected void setUpExternalContext() throws Exception
{
externalContext =
new MockExternalContext(servletContext, request, response);
}
-
+
+ /**
+ * Setup the <code>lifecycle</code> and <code>lifecycleFactory</code>
+ * variables.
+ *
+ * @throws Exception
+ */
protected void setUpLifecycle() throws Exception
{
lifecycleFactory = (MockLifecycleFactory)
@@ -164,6 +211,15 @@ public abstract class AbstractJsfTestCas
lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
}
+ /**
+ * Setup the <code>facesContextFactory</code> and <code>facesContext</code>
+ * variable. Before end, by default it override <code>externalContext</code>
+ * variable from the value retrieved from facesContext.getExternalContext(),
+ * because sometimes it is possible facesContext overrides externalContext
+ * internally.
+ *
+ * @throws Exception
+ */
protected void setUpFacesContext() throws Exception
{
facesContextFactory = (MockFacesContextFactory)
@@ -173,9 +229,18 @@ public abstract class AbstractJsfTestCas
request,
response,
lifecycle);
- externalContext = (MockExternalContext) facesContext.getExternalContext();
+ if (facesContext.getExternalContext() != null)
+ {
+ externalContext = (MockExternalContext) facesContext.getExternalContext();
+ }
}
+ /**
+ * By default, create an instance of UIViewRoot, set its viewId as "/viewId"
+ * and assign it to the current facesContext.
+ *
+ * @throws Exception
+ */
protected void setUpView() throws Exception
{
UIViewRoot root = new UIViewRoot();
@@ -184,6 +249,13 @@ public abstract class AbstractJsfTestCas
facesContext.setViewRoot(root);
}
+ /**
+ * Setup the <code>application</code> variable and before
+ * the end by default it is assigned to the <code>facesContext</code>
+ * variable, calling <code>facesContext.setApplication(application)</code>
+ *
+ * @throws Exception
+ */
protected void setUpApplication() throws Exception
{
ApplicationFactory applicationFactory = (ApplicationFactory)
@@ -192,6 +264,13 @@ public abstract class AbstractJsfTestCas
facesContext.setApplication(application);
}
+ /**
+ * Setup the <code>renderKit</code> variable. This is a good place to use
+ * <code>ConfigParser</code> to register converters, validators, components
+ * or renderkits.
+ *
+ * @throws Exception
+ */
protected void setUpRenderKit() throws Exception
{
RenderKitFactory renderKitFactory = (RenderKitFactory)
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/base/junit4/AbstractJsfConfigurableMockTestCase.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/base/junit4/AbstractJsfConfigurableMockTestCase.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/base/junit4/AbstractJsfConfigurableMockTestCase.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/base/junit4/AbstractJsfConfigurableMockTestCase.java Sat Aug 28 18:48:06 2010
@@ -63,7 +63,7 @@ import org.junit.Before;
* <p>In addition, appropriate factory classes will have been registered with
* <code>javax.faces.FactoryFinder</code> for <code>Application</code> and
* <code>RenderKit</code> instances. The created <code>FacesContext</code>
- * instance will also have been registered in the apppriate thread local
+ * instance will also have been registered in the proper thread local
* variable, to simulate what a servlet container would do.</p>
*
* <p><strong>WARNING</strong> - If you choose to subclass this class, be sure
@@ -71,6 +71,8 @@ import org.junit.Before;
* <code>super.setUp()</code> and <code>super.tearDown()</code> respectively,
* and that you implement your own <code>suite()</code> method that exposes
* the test methods for your test case.</p>
+ *
+ * @since 1.0.0
*/
public abstract class AbstractJsfConfigurableMockTestCase {
@@ -114,6 +116,21 @@ public abstract class AbstractJsfConfigu
setUpJSFObjects();
}
+ /**
+ * <p>Setup JSF object used for the test. By default it calls to the following
+ * methods in this order:</p>
+ *
+ * <ul>
+ * <li><code>setUpExternalContext();</code></li>
+ * <li><code>setUpLifecycle();</code></li>
+ * <li><code>setUpFacesContext();</code></li>
+ * <li><code>setUpView();</code></li>
+ * <li><code>setUpApplication();</code></li>
+ * <li><code>setUpRenderKit();</code></li>
+ * </ul>
+ *
+ * @throws Exception
+ */
protected void setUpJSFObjects() throws Exception
{
setUpExternalContext();
@@ -124,6 +141,19 @@ public abstract class AbstractJsfConfigu
setUpRenderKit();
}
+ /**
+ * <p>Setup servlet objects that will be used for the test:</p>
+ *
+ * <ul>
+ * <li><code>config</code> (<code>MockServletConfig</code>)</li>
+ * <li><code>servletContext</code> (<code>MockServletContext</code>)</li>
+ * <li><code>request</code> (<code>MockHttpServletRequest</code></li>
+ * <li><code>response</code> (<code>MockHttpServletResponse</code>)</li>
+ * <li><code>session</code> (<code>MockHttpSession</code>)</li>
+ * </ul>
+ *
+ * @throws Exception
+ */
protected void setUpServletObjects() throws Exception
{
servletContext = new MockServletContext();
@@ -135,6 +165,11 @@ public abstract class AbstractJsfConfigu
response = new MockHttpServletResponse();
}
+ /**
+ * <p>Set JSF factories using FactoryFinder method setFactory.</p>
+ *
+ * @throws Exception
+ */
protected void setFactories() throws Exception
{
FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY,
@@ -152,13 +187,25 @@ public abstract class AbstractJsfConfigu
FactoryFinder.setFactory(FactoryFinder.VISIT_CONTEXT_FACTORY,
"org.apache.myfaces.test.mock.visit.MockVisitContextFactory");
}
-
+
+ /**
+ * Setup the <code>externalContext</code> variable, using the
+ * servlet variables already initialized.
+ *
+ * @throws Exception
+ */
protected void setUpExternalContext() throws Exception
{
externalContext =
new MockExternalContext(servletContext, request, response);
}
-
+
+ /**
+ * Setup the <code>lifecycle</code> and <code>lifecycleFactory</code>
+ * variables.
+ *
+ * @throws Exception
+ */
protected void setUpLifecycle() throws Exception
{
lifecycleFactory = (LifecycleFactory)
@@ -167,6 +214,15 @@ public abstract class AbstractJsfConfigu
lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
}
+ /**
+ * Setup the <code>facesContextFactory</code> and <code>facesContext</code>
+ * variable. Before end, by default it override <code>externalContext</code>
+ * variable from the value retrieved from facesContext.getExternalContext(),
+ * because sometimes it is possible facesContext overrides externalContext
+ * internally.
+ *
+ * @throws Exception
+ */
protected void setUpFacesContext() throws Exception
{
facesContextFactory = (FacesContextFactory)
@@ -176,9 +232,18 @@ public abstract class AbstractJsfConfigu
request,
response,
lifecycle);
- externalContext = (ExternalContext) facesContext.getExternalContext();
+ if (facesContext.getExternalContext() != null)
+ {
+ externalContext = facesContext.getExternalContext();
+ }
}
+ /**
+ * By default, create an instance of UIViewRoot, set its viewId as "/viewId"
+ * and assign it to the current facesContext.
+ *
+ * @throws Exception
+ */
protected void setUpView() throws Exception
{
UIViewRoot root = new UIViewRoot();
@@ -187,6 +252,13 @@ public abstract class AbstractJsfConfigu
facesContext.setViewRoot(root);
}
+ /**
+ * Setup the <code>application</code> variable and before
+ * the end by default it is assigned to the <code>facesContext</code>
+ * variable, calling <code>facesContext.setApplication(application)</code>
+ *
+ * @throws Exception
+ */
protected void setUpApplication() throws Exception
{
ApplicationFactory applicationFactory = (ApplicationFactory)
@@ -195,6 +267,13 @@ public abstract class AbstractJsfConfigu
((MockFacesContext)facesContext).setApplication(application);
}
+ /**
+ * Setup the <code>renderKit</code> variable. This is a good place to use
+ * <code>ConfigParser</code> to register converters, validators, components
+ * or renderkits.
+ *
+ * @throws Exception
+ */
protected void setUpRenderKit() throws Exception
{
RenderKitFactory renderKitFactory = (RenderKitFactory)
@@ -212,7 +291,9 @@ public abstract class AbstractJsfConfigu
application = null;
config = null;
externalContext = null;
- facesContext.release();
+ if (facesContext != null) {
+ facesContext.release();
+ }
facesContext = null;
lifecycle = null;
lifecycleFactory = null;
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/base/junit4/AbstractJsfTestCase.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/base/junit4/AbstractJsfTestCase.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/base/junit4/AbstractJsfTestCase.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/base/junit4/AbstractJsfTestCase.java Sat Aug 28 18:48:06 2010
@@ -69,6 +69,8 @@ import org.junit.Before;
* <code>super.setUp()</code> and <code>super.tearDown()</code> respectively,
* and that you implement your own <code>suite()</code> method that exposes
* the test methods for your test case.</p>
+ *
+ * @since 1.0.0
*/
public abstract class AbstractJsfTestCase {
@@ -112,6 +114,21 @@ public abstract class AbstractJsfTestCas
setUpJSFObjects();
}
+ /**
+ * <p>Setup JSF object used for the test. By default it calls to the following
+ * methods in this order:</p>
+ *
+ * <ul>
+ * <li><code>setUpExternalContext();</code></li>
+ * <li><code>setUpLifecycle();</code></li>
+ * <li><code>setUpFacesContext();</code></li>
+ * <li><code>setUpView();</code></li>
+ * <li><code>setUpApplication();</code></li>
+ * <li><code>setUpRenderKit();</code></li>
+ * </ul>
+ *
+ * @throws Exception
+ */
protected void setUpJSFObjects() throws Exception
{
setUpExternalContext();
@@ -122,6 +139,19 @@ public abstract class AbstractJsfTestCas
setUpRenderKit();
}
+ /**
+ * <p>Setup servlet objects that will be used for the test:</p>
+ *
+ * <ul>
+ * <li><code>config</code> (<code>MockServletConfig</code>)</li>
+ * <li><code>servletContext</code> (<code>MockServletContext</code>)</li>
+ * <li><code>request</code> (<code>MockHttpServletRequest</code></li>
+ * <li><code>response</code> (<code>MockHttpServletResponse</code>)</li>
+ * <li><code>session</code> (<code>MockHttpSession</code>)</li>
+ * </ul>
+ *
+ * @throws Exception
+ */
protected void setUpServletObjects() throws Exception
{
servletContext = new MockServletContext();
@@ -133,6 +163,11 @@ public abstract class AbstractJsfTestCas
response = new MockHttpServletResponse();
}
+ /**
+ * <p>Set JSF factories using FactoryFinder method setFactory.</p>
+ *
+ * @throws Exception
+ */
protected void setFactories() throws Exception
{
FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY,
@@ -150,13 +185,25 @@ public abstract class AbstractJsfTestCas
FactoryFinder.setFactory(FactoryFinder.VISIT_CONTEXT_FACTORY,
"org.apache.myfaces.test.mock.visit.MockVisitContextFactory");
}
-
+
+ /**
+ * Setup the <code>externalContext</code> variable, using the
+ * servlet variables already initialized.
+ *
+ * @throws Exception
+ */
protected void setUpExternalContext() throws Exception
{
externalContext =
new MockExternalContext(servletContext, request, response);
}
-
+
+ /**
+ * Setup the <code>lifecycle</code> and <code>lifecycleFactory</code>
+ * variables.
+ *
+ * @throws Exception
+ */
protected void setUpLifecycle() throws Exception
{
lifecycleFactory = (MockLifecycleFactory)
@@ -165,6 +212,15 @@ public abstract class AbstractJsfTestCas
lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
}
+ /**
+ * Setup the <code>facesContextFactory</code> and <code>facesContext</code>
+ * variable. Before end, by default it override <code>externalContext</code>
+ * variable from the value retrieved from facesContext.getExternalContext(),
+ * because sometimes it is possible facesContext overrides externalContext
+ * internally.
+ *
+ * @throws Exception
+ */
protected void setUpFacesContext() throws Exception
{
facesContextFactory = (MockFacesContextFactory)
@@ -174,9 +230,18 @@ public abstract class AbstractJsfTestCas
request,
response,
lifecycle);
- externalContext = (MockExternalContext) facesContext.getExternalContext();
+ if (facesContext.getExternalContext() != null)
+ {
+ externalContext = (MockExternalContext) facesContext.getExternalContext();
+ }
}
+ /**
+ * By default, create an instance of UIViewRoot, set its viewId as "/viewId"
+ * and assign it to the current facesContext.
+ *
+ * @throws Exception
+ */
protected void setUpView() throws Exception
{
UIViewRoot root = new UIViewRoot();
@@ -185,6 +250,13 @@ public abstract class AbstractJsfTestCas
facesContext.setViewRoot(root);
}
+ /**
+ * Setup the <code>application</code> variable and before
+ * the end by default it is assigned to the <code>facesContext</code>
+ * variable, calling <code>facesContext.setApplication(application)</code>
+ *
+ * @throws Exception
+ */
protected void setUpApplication() throws Exception
{
ApplicationFactory applicationFactory = (ApplicationFactory)
@@ -193,6 +265,13 @@ public abstract class AbstractJsfTestCas
facesContext.setApplication(application);
}
+ /**
+ * Setup the <code>renderKit</code> variable. This is a good place to use
+ * <code>ConfigParser</code> to register converters, validators, components
+ * or renderkits.
+ *
+ * @throws Exception
+ */
protected void setUpRenderKit() throws Exception
{
RenderKitFactory renderKitFactory = (RenderKitFactory)
@@ -210,7 +289,9 @@ public abstract class AbstractJsfTestCas
application = null;
config = null;
externalContext = null;
- facesContext.release();
+ if (facesContext != null) {
+ facesContext.release();
+ }
facesContext = null;
lifecycle = null;
lifecycleFactory = null;
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/config/ConfigParser.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/config/ConfigParser.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/config/ConfigParser.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/config/ConfigParser.java Sat Aug 28 18:48:06 2010
@@ -41,9 +41,10 @@ import org.xml.sax.SAXException;
* <p>The following artifacts are registered:</p>
* <ul>
* <li><code>Converter</code> (by-id and by-class)</li>
- * <li><code>RenderKit</code> and <code>Renderer</code></li>
+ * <li><code>RenderKit</code> and <code>Renderer</code>,<code>ClientBehaviorRenderer</code></li>
* <li><code>UIComponent</code></li>
* <li><code>Validator</code></li>
+ * <li><code>Behavior</code></li>
* </ul>
*
* <p>Note that any declared <em>factory</em> instances are explicitly
@@ -56,7 +57,7 @@ import org.xml.sax.SAXException;
* <code>setUp()</code> processing in this base class before calling one
* of the <code>parse()</code> methods.</p>
*
- * @since 1.1
+ * @since 1.0.0
*/
public class ConfigParser {
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/jmock/AbstractJmockJsfTestCase.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/jmock/AbstractJmockJsfTestCase.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/jmock/AbstractJmockJsfTestCase.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/jmock/AbstractJmockJsfTestCase.java Sat Aug 28 18:48:06 2010
@@ -60,7 +60,7 @@ import org.jmock.cglib.MockObjectTestCas
* <p>In addition, appropriate factory classes will have been registered with
* <code>javax.faces.FactoryFinder</code> for <code>Application</code> and
* <code>RenderKit</code> instances. The created <code>FacesContext</code>
- * instance will also have been registered in the apppriate thread local
+ * instance will also have been registered in the proper thread local
* variable, to simulate what a servlet container would do.</p>
*
* <p><strong>WARNING</strong> - If you choose to subclass this class, be sure
@@ -68,6 +68,8 @@ import org.jmock.cglib.MockObjectTestCas
* <code>super.setUp()</code> and <code>super.tearDown()</code> respectively,
* and that you implement your own <code>suite()</code> method that exposes
* the test methods for your test case.</p>
+ *
+ * @since 1.0.0
*/
public abstract class AbstractJmockJsfTestCase extends MockObjectTestCase {
@@ -76,7 +78,11 @@ public abstract class AbstractJmockJsfTe
// ------------------------------------------------------------ Constructors
- // Construct a new instance of this test case.
+ /**
+ * <p>Construct a new instance of this test case.</p>
+ *
+ * @param name Name of this test case
+ */
public AbstractJmockJsfTestCase(String name) {
setName(name);
}
@@ -85,24 +91,44 @@ public abstract class AbstractJmockJsfTe
// ---------------------------------------------------- Overall Test Methods
- // Set up instance variables required by this test case.
+ /**
+ * <p>Set up instance variables required by this test case.</p>
+ */
protected void setUp() throws Exception {
-
+
// Set up a new thread context class loader
threadContextClassLoader = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(new URLClassLoader(new URL[0],
this.getClass().getClassLoader()));
-
+
// Set up Servlet API Objects
setUpServletObjects();
-
+
// Set up JSF API Objects
FactoryFinder.releaseFactories();
-
- setFactories();
-
+
setFactories();
+ setUpJSFObjects();
+ }
+
+ /**
+ * <p>Setup JSF object used for the test. By default it calls to the following
+ * methods in this order:</p>
+ *
+ * <ul>
+ * <li><code>setUpExternalContext();</code></li>
+ * <li><code>setUpLifecycle();</code></li>
+ * <li><code>setUpFacesContext();</code></li>
+ * <li><code>setUpView();</code></li>
+ * <li><code>setUpApplication();</code></li>
+ * <li><code>setUpRenderKit();</code></li>
+ * </ul>
+ *
+ * @throws Exception
+ */
+ protected void setUpJSFObjects() throws Exception
+ {
setUpExternalContext();
setUpLifecycle();
setUpFacesContext();
@@ -111,6 +137,19 @@ public abstract class AbstractJmockJsfTe
setUpRenderKit();
}
+ /**
+ * <p>Setup servlet objects that will be used for the test:</p>
+ *
+ * <ul>
+ * <li><code>config</code> (<code>MockServletConfig</code>)</li>
+ * <li><code>servletContext</code> (<code>MockServletContext</code>)</li>
+ * <li><code>request</code> (<code>MockHttpServletRequest</code></li>
+ * <li><code>response</code> (<code>MockHttpServletResponse</code>)</li>
+ * <li><code>session</code> (<code>MockHttpSession</code>)</li>
+ * </ul>
+ *
+ * @throws Exception
+ */
protected void setUpServletObjects() throws Exception
{
servletContext = new MockServletContext();
@@ -122,6 +161,11 @@ public abstract class AbstractJmockJsfTe
response = new MockHttpServletResponse();
}
+ /**
+ * <p>Set JSF factories using FactoryFinder method setFactory.</p>
+ *
+ * @throws Exception
+ */
protected void setFactories() throws Exception
{
FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY,
@@ -139,13 +183,25 @@ public abstract class AbstractJmockJsfTe
FactoryFinder.setFactory(FactoryFinder.VISIT_CONTEXT_FACTORY,
"org.apache.myfaces.test.mock.visit.MockVisitContextFactory");
}
-
+
+ /**
+ * Setup the <code>externalContext</code> variable, using the
+ * servlet variables already initialized.
+ *
+ * @throws Exception
+ */
protected void setUpExternalContext() throws Exception
{
externalContext =
new MockExternalContext(servletContext, request, response);
}
-
+
+ /**
+ * Setup the <code>lifecycle</code> and <code>lifecycleFactory</code>
+ * variables.
+ *
+ * @throws Exception
+ */
protected void setUpLifecycle() throws Exception
{
lifecycleFactory = (MockLifecycleFactory)
@@ -154,6 +210,15 @@ public abstract class AbstractJmockJsfTe
lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
}
+ /**
+ * Setup the <code>facesContextFactory</code> and <code>facesContext</code>
+ * variable. Before end, by default it override <code>externalContext</code>
+ * variable from the value retrieved from facesContext.getExternalContext(),
+ * because sometimes it is possible facesContext overrides externalContext
+ * internally.
+ *
+ * @throws Exception
+ */
protected void setUpFacesContext() throws Exception
{
facesContextFactory = (MockFacesContextFactory)
@@ -163,9 +228,18 @@ public abstract class AbstractJmockJsfTe
request,
response,
lifecycle);
- externalContext = (MockExternalContext) facesContext.getExternalContext();
+ if (facesContext.getExternalContext() != null)
+ {
+ externalContext = (MockExternalContext) facesContext.getExternalContext();
+ }
}
+ /**
+ * By default, create an instance of UIViewRoot, set its viewId as "/viewId"
+ * and assign it to the current facesContext.
+ *
+ * @throws Exception
+ */
protected void setUpView() throws Exception
{
UIViewRoot root = new UIViewRoot();
@@ -174,6 +248,13 @@ public abstract class AbstractJmockJsfTe
facesContext.setViewRoot(root);
}
+ /**
+ * Setup the <code>application</code> variable and before
+ * the end by default it is assigned to the <code>facesContext</code>
+ * variable, calling <code>facesContext.setApplication(application)</code>
+ *
+ * @throws Exception
+ */
protected void setUpApplication() throws Exception
{
ApplicationFactory applicationFactory = (ApplicationFactory)
@@ -182,6 +263,13 @@ public abstract class AbstractJmockJsfTe
facesContext.setApplication(application);
}
+ /**
+ * Setup the <code>renderKit</code> variable. This is a good place to use
+ * <code>ConfigParser</code> to register converters, validators, components
+ * or renderkits.
+ *
+ * @throws Exception
+ */
protected void setUpRenderKit() throws Exception
{
RenderKitFactory renderKitFactory = (RenderKitFactory)
@@ -190,13 +278,17 @@ public abstract class AbstractJmockJsfTe
renderKitFactory.addRenderKit(RenderKitFactory.HTML_BASIC_RENDER_KIT, renderKit);
}
- // Tear down instance variables required by this test case.
+ /**
+ * <p>Tear down instance variables required by this test case.</p>
+ */
protected void tearDown() throws Exception {
application = null;
config = null;
externalContext = null;
- facesContext.release();
+ if (facesContext != null) {
+ facesContext.release();
+ }
facesContext = null;
lifecycle = null;
lifecycleFactory = null;
@@ -233,4 +325,4 @@ public abstract class AbstractJmockJsfTe
// Thread context class loader saved and restored after each test
private ClassLoader threadContextClassLoader = null;
-}
\ No newline at end of file
+}
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockApplication20.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockApplication20.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockApplication20.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockApplication20.java Sat Aug 28 18:48:06 2010
@@ -39,6 +39,14 @@ import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
+/**
+ * <p>Mock implementation of <code>Application</code> that includes the semantics
+ * added by JavaServer Faces 2.0.</p>
+ *
+ * @author Leonardo Uribe
+ * @since 1.0.0
+ *
+ */
public class MockApplication20 extends MockApplication12
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockApplicationFactory.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockApplicationFactory.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockApplicationFactory.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockApplicationFactory.java Sat Aug 28 18:48:06 2010
@@ -25,6 +25,7 @@ import javax.faces.application.Applicati
* <p>Mock implementation of <code>ApplicationFactory</code>.</p>
*
* $Id$
+ * @since 1.0.0
*/
public class MockApplicationFactory extends ApplicationFactory {
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockExceptionHandler.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockExceptionHandler.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockExceptionHandler.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockExceptionHandler.java Sat Aug 28 18:48:06 2010
@@ -33,7 +33,7 @@ import java.util.Queue;
* <p/>
* $Id$
*
- * @since 2.0
+ * @since 1.0.0
*/
public class MockExceptionHandler extends ExceptionHandler
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockExceptionHandlerFactory.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockExceptionHandlerFactory.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockExceptionHandlerFactory.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockExceptionHandlerFactory.java Sat Aug 28 18:48:06 2010
@@ -25,7 +25,7 @@ import javax.faces.context.ExceptionHand
* <p/>
* $Id$
*
- * @since 2.0
+ * @since 1.0.0
*/
public class MockExceptionHandlerFactory extends ExceptionHandlerFactory
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockExternalContext20.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockExternalContext20.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockExternalContext20.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockExternalContext20.java Sat Aug 28 18:48:06 2010
@@ -31,6 +31,14 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
+/**
+ * <p>Mock implementation of <code>ExternalContext</code> that includes the semantics
+ * added by JavaServer Faces 2.0.</p>
+ *
+ * @author Leonardo Uribe
+ * @since 1.0.0
+ *
+ */
public class MockExternalContext20 extends MockExternalContext12
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockFacesContext20.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockFacesContext20.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockFacesContext20.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockFacesContext20.java Sat Aug 28 18:48:06 2010
@@ -32,6 +32,14 @@ import javax.faces.context.PartialViewCo
import javax.faces.event.PhaseId;
import javax.faces.lifecycle.Lifecycle;
+/**
+ * <p>Mock implementation of <code>FacesContext</code> that includes the semantics
+ * added by JavaServer Faces 2.0.</p>
+ *
+ * @author Leonardo Uribe
+ * @since 1.0.0
+ *
+ */
public class MockFacesContext20 extends MockFacesContext12 {
// ------------------------------------------------------------ Constructors
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockFacesContextFactory.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockFacesContextFactory.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockFacesContextFactory.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockFacesContextFactory.java Sat Aug 28 18:48:06 2010
@@ -31,6 +31,7 @@ import javax.servlet.http.HttpServletRes
* <p>Mock implementation of <code>FacesContextFactory</code>.</p>
*
* $Id$
+ * @since 1.0.0
*/
public class MockFacesContextFactory extends FacesContextFactory {
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockFlash.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockFlash.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockFlash.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockFlash.java Sat Aug 28 18:48:06 2010
@@ -36,7 +36,7 @@ import java.util.concurrent.atomic.Atomi
* <p/>
* $Id$
*
- * @since 2.0
+ * @since 1.0.0
*/
public class MockFlash extends Flash
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockPartialViewContext.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockPartialViewContext.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockPartialViewContext.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockPartialViewContext.java Sat Aug 28 18:48:06 2010
@@ -37,7 +37,7 @@ import org.apache.myfaces.test.mock.visi
* <p/>
* $Id$
*
- * @since 2.0
+ * @since 1.0.0
*/
public class MockPartialViewContext extends PartialViewContext
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockPartialViewContextFactory.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockPartialViewContextFactory.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockPartialViewContextFactory.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockPartialViewContextFactory.java Sat Aug 28 18:48:06 2010
@@ -26,7 +26,7 @@ import javax.faces.context.PartialViewCo
* <p/>
* $Id$
*
- * @since 2.0
+ * @since 1.0.0
*/
public class MockPartialViewContextFactory extends PartialViewContextFactory
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockResponseStateManager.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockResponseStateManager.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockResponseStateManager.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockResponseStateManager.java Sat Aug 28 18:48:06 2010
@@ -16,7 +16,8 @@ import javax.faces.render.ResponseStateM
/**
* Mock class that encode view state in hex format
*
- * @author lu4242
+ * @author Leonardo Uribe
+ * @since 1.0.0
*
*/
public class MockResponseStateManager extends ResponseStateManager
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockSubKeyMap.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockSubKeyMap.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockSubKeyMap.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockSubKeyMap.java Sat Aug 28 18:48:06 2010
@@ -33,6 +33,8 @@ import java.util.*;
* latter will actually show up in the former (prefixed by ".bar"). This
* "flaw" is actually relied on by PageFlowScopeMap (since it provides
* a handy way to clear out all descendents), so don't "fix" it!
+ *
+ * @since 1.0.0
*/
final class MockSubKeyMap<V> extends AbstractMap<String, V>
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockViewHandler20.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockViewHandler20.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockViewHandler20.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/MockViewHandler20.java Sat Aug 28 18:48:06 2010
@@ -30,6 +30,7 @@ import javax.faces.context.FacesContext;
*
* @author Jakob Korherr (latest modification by $Author$)
* @version $Revision$ $Date$
+ * @since 1.0.0
*/
public class MockViewHandler20 extends MockViewHandler
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockClassLoaderResourceLoader.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockClassLoaderResourceLoader.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockClassLoaderResourceLoader.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockClassLoaderResourceLoader.java Sat Aug 28 18:48:06 2010
@@ -26,6 +26,7 @@ import java.net.URL;
*
* @author Leonardo Uribe (latest modification by $Author: lu4242 $)
* @version $Revision: 882702 $ $Date: 2009-11-20 15:16:07 -0500 (Vie, 20 Nov 2009) $
+ * @since 1.0.0
*/
public class MockClassLoaderResourceLoader extends MockResourceLoader
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockExternalContextResourceLoader.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockExternalContextResourceLoader.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockExternalContextResourceLoader.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockExternalContextResourceLoader.java Sat Aug 28 18:48:06 2010
@@ -33,6 +33,7 @@ import javax.faces.context.FacesContext;
*
* @author Leonardo Uribe (latest modification by $Author: lu4242 $)
* @version $Revision: 882702 $ $Date: 2009-11-20 15:16:07 -0500 (Vie, 20 Nov 2009) $
+ * @since 1.0.0
*/
public class MockExternalContextResourceLoader extends MockResourceLoader
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResource.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResource.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResource.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResource.java Sat Aug 28 18:48:06 2010
@@ -32,6 +32,7 @@ import javax.faces.context.FacesContext;
* <p/>
* @author Leonardo Uribe (latest modification by $Author$)
* @version $Revision$ $Date$
+ * @since 1.0.0
*/
public class MockResource extends Resource
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceHandler.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceHandler.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceHandler.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceHandler.java Sat Aug 28 18:48:06 2010
@@ -41,6 +41,7 @@ import javax.faces.context.FacesContext;
*
* @author Leonardo Uribe (latest modification by $Author$)
* @version $Revision$ $Date$
+ * @since 1.0.0
*/
public class MockResourceHandler extends ResourceHandler
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceHandlerSupport.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceHandlerSupport.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceHandlerSupport.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceHandlerSupport.java Sat Aug 28 18:48:06 2010
@@ -22,6 +22,7 @@ package org.apache.myfaces.test.mock.res
*
* @author Leonardo Uribe (latest modification by $Author: jakobk $)
* @version $Revision: 960906 $ $Date: 2010-07-06 09:45:40 -0500 (Mar, 06 Jul 2010) $
+ * @since 1.0.0
*/
public class MockResourceHandlerSupport
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceLoader.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceLoader.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceLoader.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceLoader.java Sat Aug 28 18:48:06 2010
@@ -28,6 +28,7 @@ import java.util.Comparator;
*
* @author Leonardo Uribe (latest modification by $Author: lu4242 $)
* @version $Revision: 882702 $ $Date: 2009-11-20 15:16:07 -0500 (Vie, 20 Nov 2009) $
+ * @since 1.0.0
*/
public abstract class MockResourceLoader
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceMeta.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceMeta.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceMeta.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockResourceMeta.java Sat Aug 28 18:48:06 2010
@@ -23,6 +23,7 @@ package org.apache.myfaces.test.mock.res
*
* @author Leonardo Uribe (latest modification by $Author: lu4242 $)
* @version $Revision: 946779 $ $Date: 2010-05-20 15:31:42 -0500 (Jue, 20 May 2010) $
+ * @since 1.0.0
*/
public class MockResourceMeta
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockSimpleResource.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockSimpleResource.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockSimpleResource.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockSimpleResource.java Sat Aug 28 18:48:06 2010
@@ -37,6 +37,7 @@ import java.util.Map;
*
* @author Jakob Korherr (latest modification by $Author: lu4242 $)
* @version $Revision: 882702 $ $Date: 2009-11-20 15:16:07 -0500 (Vie, 20 Nov 2009) $
+ * @since 1.0.0
*/
public class MockSimpleResource extends Resource
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockSimpleResourceHandler.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockSimpleResourceHandler.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockSimpleResourceHandler.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/resource/MockSimpleResourceHandler.java Sat Aug 28 18:48:06 2010
@@ -41,6 +41,7 @@ import java.util.regex.Pattern;
*
* @author Jakob Korherr (latest modification by $Author: lu4242 $)
* @version $Revision: 882702 $ $Date: 2009-11-20 15:16:07 -0500 (Vie, 20 Nov 2009) $
+ * @since 1.0.0
*/
public class MockSimpleResourceHandler extends ResourceHandler
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/FullVisitContext.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/FullVisitContext.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/FullVisitContext.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/FullVisitContext.java Sat Aug 28 18:48:06 2010
@@ -37,6 +37,7 @@ import javax.faces.context.FacesContext;
*
* @author Werner Punz, Blake Sullivan (latest modification by $Author: matzew $)
* @version $Rev: 885739 $ $Date: 2009-12-01 06:27:24 -0500 (Mar, 01 Dic 2009) $
+ * @since 1.0.0
*/
public class FullVisitContext extends VisitContext
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/MockVisitCallback.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/MockVisitCallback.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/MockVisitCallback.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/MockVisitCallback.java Sat Aug 28 18:48:06 2010
@@ -27,7 +27,7 @@ import javax.faces.component.visit.Visit
* <p/>
* $Id$
*
- * @since 2.0
+ * @since 1.0.0
*/
public class MockVisitCallback implements VisitCallback
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/MockVisitContext.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/MockVisitContext.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/MockVisitContext.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/MockVisitContext.java Sat Aug 28 18:48:06 2010
@@ -34,7 +34,7 @@ import java.util.Set;
* <p/>
* $Id$
*
- * @since 2.0
+ * @since 1.0.0
*/
public class MockVisitContext extends VisitContext
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/MockVisitContextFactory.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/MockVisitContextFactory.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/MockVisitContextFactory.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/MockVisitContextFactory.java Sat Aug 28 18:48:06 2010
@@ -30,7 +30,7 @@ import javax.faces.context.FacesContext;
* <p/>
* $Id$
*
- * @since 2.0
+ * @since 1.0.0
*/
public class MockVisitContextFactory extends VisitContextFactory
{
Modified: myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/PartialVisitContext.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/PartialVisitContext.java?rev=990406&r1=990405&r2=990406&view=diff
==============================================================================
--- myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/PartialVisitContext.java (original)
+++ myfaces/test/trunk/test20/src/main/java/org/apache/myfaces/test/mock/visit/PartialVisitContext.java Sat Aug 28 18:48:06 2010
@@ -44,6 +44,7 @@ import javax.faces.context.FacesContext;
*
* @author Werner Punz, Blake Sullivan (latest modification by $Author: lu4242 $)
* @version $Rev: 949094 $ $Date: 2010-05-27 22:59:10 -0500 (Jue, 27 May 2010) $
+ * @since 1.0.0
*/
public class PartialVisitContext extends VisitContext
{