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