X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Ftest_code%2FIOUtilsTest.java;fp=src%2Fbe%2Fnikiroo%2Futils%2Ftest_code%2FIOUtilsTest.java;h=9f22896f0d6fcd5e09bd4dd8e9302981d7615636;hp=0000000000000000000000000000000000000000;hb=d46b7b96f94e88a776bcd2dfd756549ffb300cc9;hpb=c9994f27667bc421bcd448d39e55774fddf5c431 diff --git a/src/be/nikiroo/utils/test_code/IOUtilsTest.java b/src/be/nikiroo/utils/test_code/IOUtilsTest.java new file mode 100644 index 0000000..9f22896 --- /dev/null +++ b/src/be/nikiroo/utils/test_code/IOUtilsTest.java @@ -0,0 +1,24 @@ +package be.nikiroo.utils.test_code; + +import java.io.InputStream; + +import be.nikiroo.utils.IOUtils; +import be.nikiroo.utils.test.TestCase; +import be.nikiroo.utils.test.TestLauncher; + +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(); + } + }); + } +}