X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Ftest_code%2FTest.java;fp=src%2Fbe%2Fnikiroo%2Futils%2Ftest_code%2FTest.java;h=d6d4f4d6954d01e2e61982271d750594d5e1a349;hb=fbcc2a2acb39e4c0bbbc805ece1f8ecf2206f951;hp=0000000000000000000000000000000000000000;hpb=d20c8d77a98fbd80e8afe671568aad3325e90435;p=nikiroo-utils.git 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..d6d4f4d --- /dev/null +++ b/src/be/nikiroo/utils/test_code/Test.java @@ -0,0 +1,56 @@ +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.main.bridge; +import be.nikiroo.utils.main.img2aa; +import be.nikiroo.utils.main.justify; +import be.nikiroo.utils.test.TestLauncher; + +/** + * 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); + + 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)); + + // TODO: test cache and downloader + Cache cache = null; + CacheMemory memcache = null; + Downloader downloader = null; + + // To include the sources: + img2aa siu; + justify ssu; + bridge aa; + } + + /** + * 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()); + } +}