Mercurial > hg > y16 > e165740 > os > ex2.2
changeset 4:a542153be385
課題2.1の準備
author | e165740@shrtk-2.local |
---|---|
date | Tue, 14 Nov 2017 12:19:49 +0900 |
parents | a42908186b60 |
children | 7d7d8693ba15 |
files | src/test/java/jp/ac/uryukyu/ie/e165740/FileWriteTest.java |
diffstat | 1 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/test/java/jp/ac/uryukyu/ie/e165740/FileWriteTest.java Tue Nov 14 12:19:49 2017 +0900 @@ -0,0 +1,21 @@ +package jp.ac.uryukyu.ie.e165740; + + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + + +public class FileWriteTest { + @Test + public void getopts() throws Exception { + FileWrite fw = new FileWrite(); + String[] args = {"-b","--size","1244"}; + fw.getopts(args); + assertEquals(fw.getWriteSize(),1244); + assertEquals(fw.isBufffered(),true); + } + + +}