01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.simulator.control;
06:
07: public class MockControl implements Control {
08: public boolean waitForStartCalled;
09: public boolean notifyCompleteCalled;
10: public boolean waitForAllCompleteCalled;
11: public boolean waitForAllCompleteResult;
12: public boolean throwTimeoutExceptionInWaitForAllComplete;
13:
14: public void waitForStart() {
15: waitForStartCalled = true;
16: }
17:
18: public void notifyComplete() {
19: notifyCompleteCalled = true;
20: }
21:
22: public boolean waitForAllComplete(long timeout) {
23: waitForAllCompleteCalled = true;
24: return waitForAllCompleteResult;
25: }
26:
27: public void notifyMutationComplete() {
28: throw new AssertionError("This method should be implemented");
29: }
30:
31: public boolean waitForMutationComplete(long timeout) {
32: throw new AssertionError("This method should be implemented");
33: }
34:
35: public void notifyValidationStart() {
36: throw new AssertionError("This method should be implemented");
37: }
38:
39: public boolean waitForValidationStart(long timeout) {
40: throw new AssertionError("This method should be implemented");
41: }
42:
43: }
|