01: // Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
02: // Released under the terms of the GNU General Public License version 2 or later.
03: package fitnesse.fixtures;
04:
05: import fit.Fixture;
06:
07: public class DelayedCountFixture extends Fixture {
08: private int counter = 0;
09:
10: public void count() throws Exception {
11: counter++;
12: Thread.sleep(1000 + (long) (Math.random() * 500.0));
13: }
14:
15: public int counter() {
16: return counter;
17: }
18:
19: public void counter(int i) {
20: counter = i;
21: }
22: }
|