Merge branch 'subtree'
[nikiroo-utils.git] / test_code / IOUtilsTest.java
1 package be.nikiroo.utils.test_code;
2
3 import java.io.InputStream;
4
5 import be.nikiroo.utils.IOUtils;
6 import be.nikiroo.utils.test.TestCase;
7 import be.nikiroo.utils.test.TestLauncher;
8
9 class IOUtilsTest extends TestLauncher {
10 public IOUtilsTest(String[] args) {
11 super("IOUtils test", args);
12
13 addTest(new TestCase("openResource") {
14 @Override
15 public void test() throws Exception {
16 InputStream in = IOUtils.openResource("VERSION");
17 assertNotNull(
18 "The VERSION file is supposed to be present in the binaries",
19 in);
20 in.close();
21 }
22 });
23 }
24 }