diff -r 414d979b20b9 -r b8edf9de56c5 samples/stateful/test/org/apidesign/stateful/api/ProgressTest.java --- a/samples/stateful/test/org/apidesign/stateful/api/ProgressTest.java Sun May 02 14:34:48 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -package org.apidesign.stateful.api; - -import junit.framework.TestCase; - -public class ProgressTest extends TestCase { - - public ProgressTest(String testName) { - super(testName); - } - - public void testProgressWithoutStart() { - try { - // BEGIN: progress.wrong.order - Progress p = Progress.create("WrongOrder"); - p.progress(10); - p.finish(); - // END: progress.wrong.order - - fail("Calling progress without start yields an exception!?"); - } catch (IllegalStateException ex) { - // OK - } - } - -}