| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 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 |
} |