Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/servlet
In directory sc8-pr-cvs1:/tmp/cvs-serv31361/src/j2ee/common/com/mockobjects/servlet
Modified Files:
MockServletContext.java
Log Message:
Change resource URL to be ReturnValue
Index: MockServletContext.java
===================================================================
RCS file: /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/servlet/MockServletContext.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- MockServletContext.java 14 May 2003 15:09:42 -0000 1.4
+++ MockServletContext.java 25 Jun 2003 09:24:24 -0000 1.5
@@ -15,7 +15,7 @@
private ReturnObjectBag returnAttributes = new ReturnObjectBag("attributes");
private Set resourcePaths;
private ReturnObjectList realPaths = new ReturnObjectList("real path");
- private URL resource;
+ private ReturnValue resource = new ReturnValue("resource");
private HashMap initParameters = new HashMap();
private ExpectationValue expectedLogValue = new ExpectationValue("log");
private ExpectationValue expectedLogThrowable =
@@ -38,11 +38,11 @@
}
public void setupGetResource(URL resource) {
- this.resource = resource;
+ this.resource.setValue(resource);
}
public URL getResource(String string) {
- return resource;
+ return (URL)resource.getValue();
}
public void setupGetResourcePaths(Set resourcePaths) {
|