1.1 --- a/samples/openfixed/test/org/apidesign/openfixed/CalculatorBase.java Sun Mar 20 18:52:47 2011 +0100
1.2 +++ b/samples/openfixed/test/org/apidesign/openfixed/CalculatorBase.java Sun Mar 20 20:52:33 2011 +0100
1.3 @@ -12,6 +12,7 @@
1.4
1.5 protected abstract Calculator create();
1.6
1.7 + // BEGIN: openfixed.commontest
1.8 public void testSumAndListeners() throws Exception {
1.9 Calculator a = create();
1.10 MockListener l = new MockListener();
1.11 @@ -47,8 +48,9 @@
1.12 events.add(ev);
1.13 }
1.14
1.15 - public synchronized List<ModificationEvent> assertEvents(String msg, int cnt)
1.16 - throws InterruptedException {
1.17 + public synchronized List<ModificationEvent> assertEvents(
1.18 + String msg, int cnt
1.19 + ) throws InterruptedException {
1.20 for (int i = 0; i < 10; i++) {
1.21 if (events != null && events.size() >= cnt) {
1.22 break;
1.23 @@ -61,4 +63,5 @@
1.24 return res;
1.25 }
1.26 } // end of ModificationListener
1.27 + // END: openfixed.commontest
1.28 }