Update of /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock2/impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv393/input/javasrc/biz/xsoftware/mock2/impl
Modified Files:
MockObjectSuperImpl.java CalledMethodImpl.java
Log Message:
checkin for reintall eclipse
Index: CalledMethodImpl.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock2/impl/CalledMethodImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CalledMethodImpl.java 16 Feb 2006 15:37:34 -0000 1.2
--- CalledMethodImpl.java 25 Mar 2006 08:17:24 -0000 1.3
***************
*** 24,34 ****
}
! public String getMethodName() {
! // TODO Auto-generated method stub
return methodName;
}
public Object[] getParameters() {
! // TODO Auto-generated method stub
if(parameters==null)
{
--- 24,38 ----
}
! public CalledMethodImpl() {
!
! }
!
! public String getMethodName() {
!
return methodName;
}
public Object[] getParameters() {
!
if(parameters==null)
{
***************
*** 39,43 ****
public String getStackTrace() {
! // TODO Auto-generated method stub
return stackTrace;
}
--- 43,47 ----
public String getStackTrace() {
!
return stackTrace;
}
Index: MockObjectSuperImpl.java
===================================================================
RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock2/impl/MockObjectSuperImpl.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** MockObjectSuperImpl.java 21 Mar 2006 09:25:32 -0000 1.9
--- MockObjectSuperImpl.java 25 Mar 2006 08:17:22 -0000 1.10
***************
*** 53,56 ****
--- 53,61 ----
*/
private Map<String,Behavior> behaviorMap=new HashMap<String,Behavior>();
+ /**
+ * A Map of methods which are ignored by tester
+ */
+ private Map<String,CalledMethod> methodsIgnored=new HashMap<String,CalledMethod>();
+
public CalledMethod expect(String methodName, Class... vargs) {
***************
*** 198,207 ****
public void addIgnoreMethod(String methodName, Class... vargs) {
! // TODO Auto-generated method stub
}
public void removeIgnoreMethod(String methodName, Class... vargs) {
! // TODO Auto-generated method stub
}
--- 203,218 ----
public void addIgnoreMethod(String methodName, Class... vargs) {
! if(methodName==null)
! throw new IllegalArgumentException(Messages.METHOD_NAME_CANT_BE_NULL);
! CalledMethod calledMethod=new CalledMethodImpl(methodName);
! methodsIgnored.put(methodName,calledMethod);
!
}
public void removeIgnoreMethod(String methodName, Class... vargs) {
! if(methodName==null)
! throw new IllegalArgumentException(Messages.METHOD_NAME_CANT_BE_NULL);
! methodsIgnored.remove(methodName);
}
***************
*** 209,218 ****
public void setDefaultReturnValue(Object returnValue, String methodName,
Class... vargs) {
!
}
public Object instance() {
! // TODO Auto-generated method stub
! return null;
}
--- 220,233 ----
public void setDefaultReturnValue(Object returnValue, String methodName,
Class... vargs) {
!
!
!
}
public Object instance() {
! CalledMethod calledMethod=new CalledMethodImpl();
!
! return calledMethod;
!
}
|