Commit | Line | Data |
---|---|---|
fbcc2a2a | 1 | package be.nikiroo.utils.test_code; |
16d59378 NR |
2 | |
3 | import java.io.InputStream; | |
4 | ||
5 | import be.nikiroo.utils.IOUtils; | |
fbcc2a2a NR |
6 | import be.nikiroo.utils.test.TestCase; |
7 | import be.nikiroo.utils.test.TestLauncher; | |
16d59378 | 8 | |
32ae2079 | 9 | class 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 | } |