From: Steve F. <sm...@us...> - 2003-04-10 20:36:09
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic In directory sc8-pr-cvs1:/tmp/cvs-serv32671/src/core/com/mockobjects/dynamic Modified Files: Tag: DynamicMockExperiment C.java Log Message: Removed eq (Object[]) Added eq(object, object) Index: C.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/dynamic/C.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- C.java 10 Apr 2003 01:04:11 -0000 1.1.2.2 +++ C.java 10 Apr 2003 20:35:59 -0000 1.1.2.3 @@ -30,14 +30,21 @@ return new IsEqual(o); } - public static Constraint[] eq( Object[] o ) { - Constraint[] result = new Constraint[o.length]; - for (int i = 0; i < result.length; i++) { - result[i] = new IsEqual(o[i]); - } + public static Constraint[] eq( Object o0, Object o1 ) { + Constraint[] result = new Constraint[2]; + result[0] = eq(o0); + result[1] = eq(01); return result; } + public static Constraint[] eq( Object o0, Object o1, Object o2 ) { + Constraint[] result = new Constraint[3]; + result[0] = eq(o0); + result[1] = eq(01); + result[2] = eq(02); + return result; + } + public static Constraint eq( int n ) { return new IsEqual( new Integer(n) ); } |