Merge branch 'subtree'
[nikiroo-utils.git] / test_code / IOUtilsTest.java
CommitLineData
fbcc2a2a 1package be.nikiroo.utils.test_code;
16d59378
NR
2
3import java.io.InputStream;
4
5import be.nikiroo.utils.IOUtils;
fbcc2a2a
NR
6import be.nikiroo.utils.test.TestCase;
7import be.nikiroo.utils.test.TestLauncher;
16d59378 8
32ae2079 9class IOUtilsTest extends TestLauncher {
16d59378
NR
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 });
16d59378
NR
23 }
24}