Debian Codegraph @

test/uk/me/parabola/imgfmt/app/typ/TYPFileTest.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2008 Steve Ratcliffe
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 *
14 * Author: Steve Ratcliffe
15 * Create date: 01-Dec-2008
16 */
17 package uk.me.parabola.imgfmt.app.typ;
18
19 import uk.me.parabola.imgfmt.FileSystemParam;
20 import uk.me.parabola.imgfmt.fs.FileSystem;
21 import uk.me.parabola.imgfmt.fs.ImgChannel;
22 import uk.me.parabola.imgfmt.sys.ImgFS;
23
24 import org.junit.Test;
25
26 import func.lib.TestUtils;
27
28 import static org.junit.Assert.*;
29
30 public class TYPFileTest {
31
32 @Test
33 public void testWrite() throws Exception {
34 TestUtils.registerFile("test.typ");
35 FileSystemParam params = new FileSystemParam();
36 try (FileSystem fs = ImgFS.createFs("test.typ", params)) {
37 ImgChannel channel = fs.create("XXX.TYP");
38 TYPFile typFile = new TYPFile(channel);
39 assertNotNull("typ file is created", typFile);
40 }
41 }
42 }