|
[pmd-devel] pmd/regress/test/net/sourceforge/pmd CommandLineOptionsTest.java,1.14,1.15
From: Tom Copeland <tomcopeland@us...> - 2005-03-26 20:30
|
Update of /cvsroot/pmd/pmd/regress/test/net/sourceforge/pmd
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15098/regress/test/net/sourceforge/pmd
Modified Files:
CommandLineOptionsTest.java
Log Message:
Modified command line parameters; removed -jdk15 and -jdk13 parameters and added a -'targetjdk [1.3|1.4|1.5]' parameter.
Index: CommandLineOptionsTest.java
===================================================================
RCS file: /cvsroot/pmd/pmd/regress/test/net/sourceforge/pmd/CommandLineOptionsTest.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** CommandLineOptionsTest.java 8 Mar 2005 20:23:14 -0000 1.14
--- CommandLineOptionsTest.java 26 Mar 2005 20:30:32 -0000 1.15
***************
*** 37,40 ****
--- 37,49 ----
public class CommandLineOptionsTest extends TestCase {
+ public void testTargetJDKVersion() {
+ CommandLineOptions opt = new CommandLineOptions(new String[] {"file", "format", "basic"});
+ assertEquals("1.4", opt.getTargetJDK());
+ opt = new CommandLineOptions(new String[] {"file", "format", "ruleset", "-targetjdk", "1.3"});
+ assertEquals("1.3", opt.getTargetJDK());
+ opt = new CommandLineOptions(new String[] {"file", "format", "ruleset", "-targetjdk", "1.5"});
+ assertEquals("1.5", opt.getTargetJDK());
+ }
+
public void testDebug() {
CommandLineOptions opt = new CommandLineOptions(new String[] {"file", "format", "basic", "-debug"});
***************
*** 47,60 ****
}
- public void testTargetJDKVersion() {
- CommandLineOptions opt = new CommandLineOptions(new String[] {"file", "format", "basic"});
- assertFalse(opt.jdk13());
- opt = new CommandLineOptions(new String[] {"file", "format", "ruleset", "-jdk13"});
- assertTrue(opt.jdk13());
- opt = new CommandLineOptions(new String[] {"file", "format", "ruleset", "-jdk15"});
- assertTrue(opt.jdk15());
- assertFalse(opt.jdk13());
- }
-
public void testShortNames() {
CommandLineOptions opt = new CommandLineOptions(new String[] {"file", "format", "basic", "-shortnames"});
--- 56,59 ----
|
| Thread | Author | Date |
|---|---|---|
| [pmd-devel] pmd/regress/test/net/sourceforge/pmd CommandLineOptionsTest.java,1.14,1.15 | Tom Copeland <tomcopeland@us...> |