diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-07-03 19:09:31 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-07-03 19:09:31 +0100 |
| commit | 39b60d4225f5efa4e0287a2c6ce69d90391c69db (patch) | |
| tree | 18c5b05726f39baa4d3ca8b228e24ad1f0182f2a /test/uk/ac/ox/cs/pagoda/util/SimpleProgressBarTester.java | |
| parent | 133dab6e21f263df2baca913d3d0b7a4fd152d08 (diff) | |
| download | ACQuA-39b60d4225f5efa4e0287a2c6ce69d90391c69db.tar.gz ACQuA-39b60d4225f5efa4e0287a2c6ce69d90391c69db.zip | |
Many little changes.
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 | } | ||
