Created
February 4, 2014 11:15
-
-
Save jiewmeng/8801853 to your computer and use it in GitHub Desktop.
cat tool test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sg.edu.nus.comp.cs4218.impl.fileutils; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import org.junit.Test; | |
import sg.edu.nus.comp.cs4218.fileutils.ICatTool; | |
public class CATToolTest { | |
protected ICatTool catTool; | |
@Test | |
public void catSingleFile() { | |
} | |
@Test | |
public void catMultipleFiles() { | |
} | |
@Test | |
public void catSomeValidSomeInvalidFiles() { | |
} | |
@Test | |
public void catWithNoArgs() { | |
} | |
@Test | |
public void catSameFiles() { | |
} | |
@Test | |
public void catStdin() { | |
} | |
// cat - - - | |
@Test | |
public void catMultipleStdins() { | |
} | |
// cat file1 file2 - | |
@Test | |
public void catFilesWithStdin() { | |
} | |
// cat - file1 file2 | |
@Test | |
public void catStdinWithFiles() { | |
} | |
public void cat(Path workingDir, String[] args, String stdIn) { | |
catTool = new CATTool(args); | |
catTool.execute(workingDir.toFile(), stdIn); | |
} | |
public void cat(String[] args, String stdIn) { | |
cat(Paths.get("."), args, stdIn); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment