01: package net.sf.mockcreator.expectable;
02:
03: public interface ExpectableExpectSame {
04: void foo(Object a, Object b);
05:
06: void bar(int a, int b);
07:
08: public static class PtrEquals {
09: }
10:
11: public static class Runner {
12: public static void doSwap(ExpectableExpectSame same) {
13: String a = new String("a");
14: String b = new String("b");
15: same.foo(a, b);
16: same.foo(b, a);
17: }
18:
19: public static void doSwapPtrs(ExpectableExpectSame same) {
20: PtrEquals a = new PtrEquals();
21: PtrEquals b = new PtrEquals();
22: same.foo(a, b);
23: same.foo(b, a);
24: }
25:
26: public static void doSwapInts(ExpectableExpectSame same) {
27: int a = 5;
28: int b = 6;
29: same.bar(a, b);
30: same.bar(b, a);
31: }
32: }
33: }
|