Update of /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/impl/mock
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv19363/input/javasrc/biz/xsoftware/impl/mock
Modified Files:
ThrowException.java ReturnValue.java
Log Message:
- Adding Apache License header
- Javadoc cleanup
Index: ReturnValue.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/impl/mock/ReturnValue.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ReturnValue.java 23 May 2008 19:06:00 -0000 1.3
--- ReturnValue.java 11 Feb 2009 16:27:32 -0000 1.4
***************
*** 1,4 ****
--- 1,23 ----
+ /*
+ * 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;
+ import biz.xsoftware.mock.MockObject;
+
+ /**
+ * Used by {@link MockObject#addReturnValue} methods
+ */
public final class ReturnValue implements Action {
***************
*** 9,12 ****
--- 28,36 ----
}
+ /**
+ * Returns the return value given in the constructor
+ *
+ * @see biz.xsoftware.impl.mock.Action#execute(java.lang.Object[])
+ */
public Object execute(final Object[] args) {
return retVal;
Index: ThrowException.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib3/input/javasrc/biz/xsoftware/impl/mock/ThrowException.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ThrowException.java 23 May 2008 19:06:02 -0000 1.4
--- ThrowException.java 11 Feb 2009 16:27:32 -0000 1.5
***************
*** 1,4 ****
--- 1,24 ----
+ /*
+ * 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;
+ import biz.xsoftware.mock.MockObject;
+
+ /**
+ * Used when calling {@link MockObject#addThrowException(String, Throwable)} and
+ * similar methods that cause an exception to be thrown when a method is called
+ */
public final class ThrowException implements Action {
***************
*** 17,20 ****
throw e;
}
-
}
--- 37,39 ----
|