Skip to content

Instantly share code, notes, and snippets.

@jiewmeng
Created February 4, 2014 11:15
Show Gist options
  • Save jiewmeng/8801853 to your computer and use it in GitHub Desktop.
Save jiewmeng/8801853 to your computer and use it in GitHub Desktop.
cat tool test
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