X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Ftest%2FIOUtilsTest.java;fp=src%2Fbe%2Fnikiroo%2Futils%2Ftest%2FIOUtilsTest.java;h=50469400f87e7746aabcbe1ec53a50749a5c8f69;hb=16d593780fa5a4c39cc36b29382da610eae951da;hp=0000000000000000000000000000000000000000;hpb=009196a48ec0820288dac580f661c8884e1c1108;p=nikiroo-utils.git diff --git a/src/be/nikiroo/utils/test/IOUtilsTest.java b/src/be/nikiroo/utils/test/IOUtilsTest.java new file mode 100644 index 0000000..5046940 --- /dev/null +++ b/src/be/nikiroo/utils/test/IOUtilsTest.java @@ -0,0 +1,31 @@ +package be.nikiroo.utils.test; + +import java.io.InputStream; + +import be.nikiroo.utils.IOUtils; + +public class IOUtilsTest extends TestLauncher { + + public IOUtilsTest(String[] args) { + super("IOUtils test", args); + + addTest(new TestCase("openResource") { + @Override + public void test() throws Exception { + InputStream in = IOUtils.openResource("VERSION"); + assertNotNull( + "The VERSION file is supposed to be present in the binaries", + in); + in.close(); + } + }); + + addTest(new TestCase("getVersion") { + @Override + public void test() throws Exception { + assertNotNull("The VERSION is not defined", + IOUtils.getVersion()); + } + }); + } +}