X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Ftest_code%2FTest.java;fp=src%2Fbe%2Fnikiroo%2Futils%2Ftest_code%2FTest.java;h=8d99cba8d898b38245986687c3f476f4412e4fbf;hp=0000000000000000000000000000000000000000;hb=d46b7b96f94e88a776bcd2dfd756549ffb300cc9;hpb=c9994f27667bc421bcd448d39e55774fddf5c431 diff --git a/src/be/nikiroo/utils/test_code/Test.java b/src/be/nikiroo/utils/test_code/Test.java new file mode 100644 index 0000000..8d99cba --- /dev/null +++ b/src/be/nikiroo/utils/test_code/Test.java @@ -0,0 +1,68 @@ +package be.nikiroo.utils.test_code; + +import be.nikiroo.utils.Cache; +import be.nikiroo.utils.CacheMemory; +import be.nikiroo.utils.Downloader; +import be.nikiroo.utils.Proxy; +import be.nikiroo.utils.main.bridge; +import be.nikiroo.utils.main.img2aa; +import be.nikiroo.utils.main.justify; +import be.nikiroo.utils.test.TestLauncher; +import be.nikiroo.utils.ui.UIUtils; + +/** + * Tests for nikiroo-utils. + * + * @author niki + */ +public class Test extends TestLauncher { + /** + * Start the tests. + * + * @param args + * the arguments (which are passed as-is to the other test + * classes) + */ + public Test(String[] args) { + super("Nikiroo-utils", args); + + // setDetails(true); + + addSeries(new ProgressTest(args)); + addSeries(new BundleTest(args)); + addSeries(new IOUtilsTest(args)); + addSeries(new VersionTest(args)); + addSeries(new SerialTest(args)); + addSeries(new SerialServerTest(args)); + addSeries(new StringUtilsTest(args)); + addSeries(new TempFilesTest(args)); + addSeries(new CryptUtilsTest(args)); + addSeries(new BufferedInputStreamTest(args)); + addSeries(new NextableInputStreamTest(args)); + addSeries(new ReplaceInputStreamTest(args)); + addSeries(new BufferedOutputStreamTest(args)); + addSeries(new ReplaceOutputStreamTest(args)); + + // TODO: test cache and downloader + Cache cache = null; + CacheMemory memcache = null; + Downloader downloader = null; + + // To include the sources: + img2aa siu; + justify ssu; + bridge aa; + Proxy proxy; + UIUtils uiUtils; + } + + /** + * Main entry point of the program. + * + * @param args + * the arguments passed to the {@link TestLauncher}s. + */ + static public void main(String[] args) { + System.exit(new Test(args).launch()); + } +}