commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jke...@apache.org
Subject cvs commit: jakarta-commons/cli/src/test/org/apache/commons/cli BugsTest.java
Date Sat, 19 Oct 2002 21:18:26 GMT
jkeyes      2002/10/19 14:18:26

  Modified:    cli/src/test/org/apache/commons/cli BugsTest.java
  Log:
  test for 13666 and 13780
  
  Revision  Changes    Path
  1.9       +17 -1     jakarta-commons/cli/src/test/org/apache/commons/cli/BugsTest.java
  
  Index: BugsTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/src/test/org/apache/commons/cli/BugsTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- BugsTest.java	8 Oct 2002 21:24:11 -0000	1.8
  +++ BugsTest.java	19 Oct 2002 21:18:26 -0000	1.9
  @@ -262,4 +262,20 @@
           }
           fail( "MissingArgumentException not caught." );
       }
  +
  +    public void test13666() {
  +        Options options = new Options();
  +        Option dir = OptionBuilder.withDescription( "dir" )
  +                                       .hasArg()
  +                                       .create( 'd' );
  +        options.addOption( dir );
  +        try {
  +            HelpFormatter formatter = new HelpFormatter();
  +            formatter.printHelp( "dir", options );
  +        }
  +        catch( Exception exp ) {
  +            fail( "Unexpected Exception: " + exp.getMessage() );
  +        }
  +    }
  +
   }
  
  
  

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


Mime
View raw message