Update of /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/impl/mock
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv23936/input/javasrc/biz/xsoftware/impl/mock
Modified Files:
MockSuperclass.java
Log Message:
- Adding Apache License header
- Adding implementation of new setDefaultReturnValue(MethodSignature, Object) to method
Index: MockSuperclass.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/impl/mock/MockSuperclass.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** MockSuperclass.java 23 May 2008 19:06:00 -0000 1.12
--- MockSuperclass.java 11 Feb 2009 18:31:15 -0000 1.13
***************
*** 1,2 ****
--- 1,16 ----
+ /*
+ * 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.impl.mock;
***************
*** 984,987 ****
--- 998,1010 ----
methodToDefaultRetVal.put(method, new ReturnValue(o));
}
+
+ /*
+ * (non-Javadoc)
+ * @see biz.xsoftware.mock.MockObject#setDefaultReturnValue(biz.xsoftware.mock.MethodSignature, java.lang.Object)
+ */
+ public void setDefaultReturnValue(MethodSignature methodSignature, Object returnValue) {
+ Method method = checkMethod(methodSignature.getName(), methodSignature.getParamTypes());
+ methodToDefaultRetVal.put(method, new ReturnValue(returnValue));
+ }
/*
|