| 1 | /** |
| 2 | * Copyright (C) 2006 Carrier Access, Corp. |
| 3 | */ |
| 4 | package biz.xsoftware.mock.client.test; |
| 5 | |
| 6 | import biz.xsoftware.mock.client.JsMockSuperclass; |
| 7 | |
| 8 | /** |
| 9 | */ |
| 10 | public class MockFakeInterface extends JsMockSuperclass implements FakeInterface |
| 11 | { |
| 12 | public static final String SOME_METHOD = "someMethod"; |
| 13 | public static final String GET_VALUE = "getValue"; |
| 14 | |
| 15 | /** |
| 16 | * @see biz.xsoftware.mock.client.test.FakeInterface#someMethod(java.lang.String, int) |
| 17 | */ |
| 18 | public void someMethod(String s, int i) |
| 19 | { |
| 20 | methodCalled(SOME_METHOD, new Object[] {s, new Integer(i)}); |
| 21 | } |
| 22 | |
| 23 | |
| 24 | /** |
| 25 | * @see biz.xsoftware.mock.client.test.FakeInterface#getValue() |
| 26 | */ |
| 27 | public int getValue() |
| 28 | { |
| 29 | return ((Integer)methodCalled(GET_VALUE, null)).intValue(); |
| 30 | } |
| 31 | |
| 32 | } |