Update of /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/mock
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv22933/input/javasrc/biz/xsoftware/mock
Modified Files:
MockObject.java
Log Message:
- Adding Apache License header
- Adding setDefaultReturnValue(MethodSignature, Object) to interface
Index: MockObject.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/mock/MockObject.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** MockObject.java 23 May 2008 19:06:05 -0000 1.14
--- MockObject.java 11 Feb 2009 18:30:30 -0000 1.15
***************
*** 1,3 ****
--- 1,15 ----
/*
+ * Copyright 2009 mocklib.sourceforge.net
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
package biz.xsoftware.mock;
***************
*** 177,180 ****
--- 189,207 ----
/**
+ * Sets the default return value for the given MethodSignature. This value is returned if none
+ * of the following happen
+ * <ol>
+ * <li>addReturnValue is not called giving a return value</li>
+ * <li>addThrowException is not called returning an exception</li>
+ * <li>addBehavior is not called running a snippet of code that returns a
+ * value</li>
+ * </ol>
+ *
+ * @param method The method name to set the default return value for
+ * @param returnValue
+ */
+ public void setDefaultReturnValue(MethodSignature methodSignature, Object returnValue);
+
+ /**
* Provide the return value for a specific {@link Method}. This is useful
* for specifying a method that you're having trouble getting MockObject to
|