diff options
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/util/SimpleProgressBarTester.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/util/SimpleProgressBarTester.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/util/SimpleProgressBarTester.java b/test/uk/ac/ox/cs/pagoda/util/SimpleProgressBarTester.java new file mode 100644 index 0000000..3de30e4 --- /dev/null +++ b/test/uk/ac/ox/cs/pagoda/util/SimpleProgressBarTester.java | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.util; | ||
| 2 | |||
| 3 | import org.testng.annotations.Test; | ||
| 4 | |||
| 5 | public class SimpleProgressBarTester { | ||
| 6 | |||
| 7 | @Test | ||
| 8 | public void test() throws InterruptedException { | ||
| 9 | SimpleProgressBar simpleProgressBar = new SimpleProgressBar("TestBar", 1000); | ||
| 10 | for(int i = 0; i < 1000; i++) { | ||
| 11 | simpleProgressBar.update(i); | ||
| 12 | Thread.sleep(10); | ||
| 13 | } | ||
| 14 | simpleProgressBar.dispose(); | ||
| 15 | } | ||
| 16 | } | ||
