commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jke...@apache.org
Subject svn commit: r279107 - /jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/util/HelpFormatterTest.java
Date Tue, 06 Sep 2005 21:01:40 GMT
Author: jkeyes
Date: Tue Sep  6 14:01:31 2005
New Revision: 279107

URL: http://svn.apache.org/viewcvs?rev=279107&view=rev
Log:
- add assert for getShellCommand

Modified:
    jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/util/HelpFormatterTest.java

Modified: jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/util/HelpFormatterTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/util/HelpFormatterTest.java?rev=279107&r1=279106&r2=279107&view=diff
==============================================================================
--- jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/util/HelpFormatterTest.java
(original)
+++ jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/util/HelpFormatterTest.java
Tue Sep  6 14:01:31 2005
@@ -1,5 +1,5 @@
 /**
- * Copyright 2003-2004 The Apache Software Foundation
+ * Copyright 2003-2005 The Apache Software Foundation
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -82,6 +82,9 @@
         final PrintWriter pw = new PrintWriter(writer);
         helpFormatter.setPrintWriter(pw);
         helpFormatter.print();
+
+        // test shell
+        assertEquals("incorrect shell command", "ant", helpFormatter.getShellCommand());
 
         // test group
         assertEquals("incorrect group", this.options, helpFormatter.getGroup());



---------------------------------------------------------------------
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