Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/constraint
In directory sc8-pr-cvs1:/tmp/cvs-serv6154/core/com/mockobjects/constraint
Modified Files:
Tag: DynamicMockExperiment
IsEqual.java
Log Message:
Fixed proxy error reporting when used as an expectation
Index: IsEqual.java
===================================================================
RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/constraint/IsEqual.java,v
retrieving revision 1.2.2.3
retrieving revision 1.2.2.4
diff -u -r1.2.2.3 -r1.2.2.4
--- IsEqual.java 15 Apr 2003 22:23:00 -0000 1.2.2.3
+++ IsEqual.java 16 Apr 2003 16:31:47 -0000 1.2.2.4
@@ -4,6 +4,9 @@
*/
package com.mockobjects.constraint;
+import com.mockobjects.dynamic.DynamicUtil;
+
+
/** Is the value equal to another value, as tested by the
* {@link java.lang.Object#equals} method?
@@ -21,7 +24,7 @@
}
public String toString() {
- return _object.toString();
+ return DynamicUtil.getProxyName(_object);
}
public boolean equals(Object anObject) {
|