Merge commit '868c706b81e33e99c5f57fb9fc200808e061c4bb'
[fanfix.git] / test_code / Test.java
CommitLineData
fbcc2a2a 1package be.nikiroo.utils.test_code;
80383c14 2
80500544 3import be.nikiroo.utils.Cache;
348b1820 4import be.nikiroo.utils.CacheMemory;
80500544 5import be.nikiroo.utils.Downloader;
38e8c06c 6import be.nikiroo.utils.Proxy;
5247b37b 7import be.nikiroo.utils.main.bridge;
9e50696e
NR
8import be.nikiroo.utils.main.img2aa;
9import be.nikiroo.utils.main.justify;
fbcc2a2a 10import be.nikiroo.utils.test.TestLauncher;
38e8c06c 11import be.nikiroo.utils.ui.UIUtils;
80500544 12
80383c14
NR
13/**
14 * Tests for nikiroo-utils.
15 *
16 * @author niki
17 */
18public class Test extends TestLauncher {
db31c358
NR
19 /**
20 * Start the tests.
21 *
22 * @param args
23 * the arguments (which are passed as-is to the other test
24 * classes)
25 */
80383c14
NR
26 public Test(String[] args) {
27 super("Nikiroo-utils", args);
28
d2219aa0
NR
29 // setDetails(true);
30
86057589 31 addSeries(new ProgressTest(args));
80383c14 32 addSeries(new BundleTest(args));
16d59378 33 addSeries(new IOUtilsTest(args));
32ae2079 34 addSeries(new VersionTest(args));
db31c358 35 addSeries(new SerialTest(args));
8537d55a 36 addSeries(new SerialServerTest(args));
620f7329
NR
37 addSeries(new StringUtilsTest(args));
38 addSeries(new TempFilesTest(args));
f3502fbd 39 addSeries(new CryptUtilsTest(args));
6ef54b36 40 addSeries(new BufferedInputStreamTest(args));
4098af70 41 addSeries(new NextableInputStreamTest(args));
6ef54b36 42 addSeries(new ReplaceInputStreamTest(args));
a26188d3 43 addSeries(new BufferedOutputStreamTest(args));
c8ce09c4 44 addSeries(new ReplaceOutputStreamTest(args));
348b1820 45
80500544
NR
46 // TODO: test cache and downloader
47 Cache cache = null;
348b1820 48 CacheMemory memcache = null;
80500544 49 Downloader downloader = null;
38e8c06c 50
ce060f5a 51 // To include the sources:
9e50696e
NR
52 img2aa siu;
53 justify ssu;
5247b37b 54 bridge aa;
38e8c06c
NR
55 Proxy proxy;
56 UIUtils uiUtils;
80383c14
NR
57 }
58
59 /**
60 * Main entry point of the program.
61 *
62 * @param args
63 * the arguments passed to the {@link TestLauncher}s.
64 */
65 static public void main(String[] args) {
66 System.exit(new Test(args).launch());
67 }
68}