now mostly streamified!
[nikiroo-utils.git] / src / be / nikiroo / utils / 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.main.bridge;
7 import be.nikiroo.utils.main.img2aa;
8 import be.nikiroo.utils.main.justify;
9 import be.nikiroo.utils.test.TestLauncher;
10
11 /**
12 * Tests for nikiroo-utils.
13 *
14 * @author niki
15 */
16 public class Test extends TestLauncher {
17 /**
18 * Start the tests.
19 *
20 * @param args
21 * the arguments (which are passed as-is to the other test
22 * classes)
23 */
24 public Test(String[] args) {
25 super("Nikiroo-utils", args);
26
27 // setDetails(true);
28
29 addSeries(new ProgressTest(args));
30 addSeries(new BundleTest(args));
31 addSeries(new IOUtilsTest(args));
32 addSeries(new VersionTest(args));
33 addSeries(new SerialTest(args));
34 addSeries(new SerialServerTest(args));
35 addSeries(new StringUtilsTest(args));
36 addSeries(new TempFilesTest(args));
37 addSeries(new CryptUtilsTest(args));
38 addSeries(new BufferedInputStreamTest(args));
39 addSeries(new NextableInputStreamTest(args));
40 addSeries(new ReplaceInputStreamTest(args));
41 addSeries(new BufferedOutputStreamTest(args));
42 addSeries(new ReplaceOutputStreamTest(args));
43
44 // TODO: test cache and downloader
45 Cache cache = null;
46 CacheMemory memcache = null;
47 Downloader downloader = null;
48
49 // To include the sources:
50 img2aa siu;
51 justify ssu;
52 bridge aa;
53 }
54
55 /**
56 * Main entry point of the program.
57 *
58 * @param args
59 * the arguments passed to the {@link TestLauncher}s.
60 */
61 static public void main(String[] args) {
62 System.exit(new Test(args).launch());
63 }
64 }