commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roxspr...@apache.org
Subject cvs commit: jakarta-commons/cli/src/test/org/apache/commons/cli2/option ArgumentTest.java
Date Sat, 02 Oct 2004 11:35:34 GMT
roxspring    2004/10/02 04:35:34

  Modified:    cli/src/java/org/apache/commons/cli2/builder
                        ArgumentBuilder.java
               cli/src/test/org/apache/commons/cli2/option
                        ArgumentTest.java
  Log:
  ArgumentBuilder now resets the validator to null on reset()
  
  Revision  Changes    Path
  1.3       +1 -0      jakarta-commons/cli/src/java/org/apache/commons/cli2/builder/ArgumentBuilder.java
  
  Index: ArgumentBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/src/java/org/apache/commons/cli2/builder/ArgumentBuilder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ArgumentBuilder.java	22 Apr 2004 23:00:15 -0000	1.2
  +++ ArgumentBuilder.java	2 Oct 2004 11:35:34 -0000	1.3
  @@ -100,6 +100,7 @@
           maximum = Integer.MAX_VALUE;
           initialSeparator = ArgumentImpl.DEFAULT_INITIAL_SEPARATOR;
           subsequentSeparator = ArgumentImpl.DEFAULT_SUBSEQUENT_SEPARATOR;
  +        validator = null;
           consumeRemaining = "--";
           defaultValues = null;
           id = 0;
  
  
  
  1.3       +2 -0      jakarta-commons/cli/src/test/org/apache/commons/cli2/option/ArgumentTest.java
  
  Index: ArgumentTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/src/test/org/apache/commons/cli2/option/ArgumentTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ArgumentTest.java	22 Apr 2004 23:00:14 -0000	1.2
  +++ ArgumentTest.java	2 Oct 2004 11:35:34 -0000	1.3
  @@ -319,6 +319,7 @@
           final ListIterator iterator = args.listIterator();
           try {
               option.processValues(commandLine, iterator, option);
  +            option.validate(commandLine);
               fail("Expected MissingValueException");
           }
           catch (OptionException mve) {
  @@ -549,6 +550,7 @@
   
           try {
               option.process(commandLine, iterator);
  +            option.validate(commandLine);
               fail("Missing Value!");
           }
           catch (OptionException mve) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message