Skip to content

Commit 6b7691b

Browse files
author
John Keyes
committed
- add assert for getShellCommand
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@279107 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9a3f8e0 commit 6b7691b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/test/org/apache/commons/cli2/util/HelpFormatterTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2003-2004 The Apache Software Foundation
2+
* Copyright 2003-2005 The Apache Software Foundation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -83,6 +83,9 @@ public void testPrint() throws IOException {
8383
helpFormatter.setPrintWriter(pw);
8484
helpFormatter.print();
8585

86+
// test shell
87+
assertEquals("incorrect shell command", "ant", helpFormatter.getShellCommand());
88+
8689
// test group
8790
assertEquals("incorrect group", this.options, helpFormatter.getGroup());
8891

0 commit comments

Comments
 (0)