Merge branch 'subtree'
[nikiroo-utils.git] / test_code / Test.java
1 package be.nikiroo.utils.test_code;
2
3 import be.nikiroo.utils.Cache;
4 import be.nikiroo.utils.CacheMemory;
5 import be.nikiroo.utils.Downloader;
6 import be.nikiroo.utils.Proxy;
7 import be.nikiroo.utils.main.bridge;
8 import be.nikiroo.utils.main.img2aa;
9 import be.nikiroo.utils.main.justify;
10 import be.nikiroo.utils.test.TestLauncher;
11 import be.nikiroo.utils.ui.UIUtils;
12
13 /**
14 * Tests for nikiroo-utils.
15 *
16 * @author niki
17 */
18 public class Test extends TestLauncher {
19 /**
20 * Start the tests.
21 *
22 * @param args
23 * the arguments (which are passed as-is to the other test
24 * classes)
25 */
26 public Test(String[] args) {
27 super("Nikiroo-utils", args);
28
29 // setDetails(true);
30
31 addSeries(new ProgressTest(args));
32 addSeries(new BundleTest(args));
33 addSeries(new IOUtilsTest(args));
34 addSeries(new VersionTest(args));
35 addSeries(new SerialTest(args));
36 addSeries(new SerialServerTest(args));
37 addSeries(new StringUtilsTest(args));
38 addSeries(new TempFilesTest(args));
39 addSeries(new CryptUtilsTest(args));
40 addSeries(new BufferedInputStreamTest(args));
41 addSeries(new NextableInputStreamTest(args));
42 addSeries(new ReplaceInputStreamTest(args));
43 addSeries(new BufferedOutputStreamTest(args));
44 addSeries(new ReplaceOutputStreamTest(args));
45
46 // TODO: test cache and downloader
47 Cache cache = null;
48 CacheMemory memcache = null;
49 Downloader downloader = null;
50
51 // To include the sources:
52 img2aa siu;
53 justify ssu;
54 bridge aa;
55 Proxy proxy;
56 UIUtils uiUtils;
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 }