Unit test for patch 1615546

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4883 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Allan Caplan
2006-12-15 00:28:49 +00:00
parent e2f2298ffa
commit 6cf52f8267

View File

@ -106,6 +106,12 @@ public class CommandLineOptionsTest extends TestCase {
// cool
}
}
public void testReportFile(){
CommandLineOptions opt = new CommandLineOptions(new String[]{"file", "format", "basic", "-reportfile", "foo.txt"});
assertSame("foo.txt", opt.getReportFile());
}
public void testRenderer() {
CommandLineOptions opt = new CommandLineOptions(new String[]{"file", "xml", "basic"});