Update of /cvsroot/mocklib//mocklib3/input/javasrc/biz/xsoftware/mock
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23038/input/javasrc/biz/xsoftware/mock
Modified Files:
MockObject.java
Log Message:
deprecated addreturnvalue method, and add a new one which sepcifies user wants the returnvalue be array or varargs
Index: MockObject.java
===================================================================
RCS file: /cvsroot/mocklib//mocklib3/input/javasrc/biz/xsoftware/mock/MockObject.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** MockObject.java 14 May 2007 18:31:32 -0000 1.12
--- MockObject.java 14 Nov 2007 03:13:31 -0000 1.13
***************
*** 142,145 ****
--- 142,155 ----
*/
public void addReturnValue(String method, Object o);
+ public void addReturnValue(String method,boolean isArray,Object ... o);
+
+ /**
+ * @deprecated
+ * user should use above method to replace this
+ * otherwise if user add an arrayobject as return value,
+ * this method will seperate array to single object
+ * @param method
+ * @param o
+ */
public void addReturnValue(String method, Object ... o);
|