X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=test_code%2FIOUtilsTest.java;fp=test_code%2FIOUtilsTest.java;h=9f22896f0d6fcd5e09bd4dd8e9302981d7615636;hb=46add0670fdee4bd936a13fe2448c5e20a7ffd0a;hp=0000000000000000000000000000000000000000;hpb=1b5197ed4ceec2025a9a40c417b37c646b756138;p=nikiroo-utils.git diff --git a/test_code/IOUtilsTest.java b/test_code/IOUtilsTest.java new file mode 100644 index 0000000..9f22896 --- /dev/null +++ b/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(); + } + }); + } +}