Author: hlship
Date: Wed Jan 6 17:32:46 2010
New Revision: 896554
URL: http://svn.apache.org/viewvc?rev=896554&view=rev
Log:
Add a method to create a mock RequestGlobals
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/test/TapestryTestCase.java
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/test/TapestryTestCase.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/test/TapestryTestCase.java?rev=896554&r1=896553&r2=896554&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/test/TapestryTestCase.java
(original)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/test/TapestryTestCase.java
Wed Jan 6 17:32:46 2010
@@ -1,4 +1,4 @@
-// Copyright 2006, 2007, 2008, 2009 The Apache Software Foundation
+// Copyright 2006, 2007, 2008, 2009, 2010 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -1215,4 +1215,10 @@
{
return newMock(Asset2.class);
}
+
+ /** @since 5.2.0 */
+ protected final RequestGlobals mockRequestGlobals()
+ {
+ return newMock(RequestGlobals.class);
+ }
}