From: Tim M. <ma...@us...> - 2003-04-07 14:27:06
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/util In directory sc8-pr-cvs1:/tmp/cvs-serv10938/src/core/com/mockobjects/util Modified Files: Tag: DynamicMockExperiment AssertMo.java Log Message: Refactored class hierarchy: - call actions can be stubbed - stubs can be decorated with expectations - calls can be grouped in a CallSet (set/bag) - a mock object inherits from CallSet Index: AssertMo.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/util/AssertMo.java,v retrieving revision 1.2.4.1 retrieving revision 1.2.4.2 diff -u -r1.2.4.1 -r1.2.4.2 --- AssertMo.java 4 Apr 2003 16:47:41 -0000 1.2.4.1 +++ AssertMo.java 7 Apr 2003 14:27:02 -0000 1.2.4.2 @@ -118,4 +118,15 @@ "\tExpected: " + expectedMsg + "\n" + "\tReceived: " + receivedMsg + "\n"; } + + public static String methodToString( String name, Object[] args ) { + StringBuffer buf = new StringBuffer(); + + buf.append(name); + buf.append("("); + buf.append(join(args)); + buf.append(")"); + + return buf.toString(); + } } |