Claudenw commented on code in PR #230:
URL: https://github.com/apache/commons-cli/pull/230#discussion_r1492652231


##########
src/test/java/org/apache/commons/cli/OptionsTest.java:
##########
@@ -78,6 +79,26 @@ public void testGetOptionsGroups() {
         assertEquals(2, options.getOptionGroups().size());
     }
 
+    @Test
+    public void testAddOptions() {
+        final Options options = new Options();
+
+        final OptionGroup group1 = new OptionGroup();
+        group1.addOption(Option.builder("a").build());
+        group1.addOption(Option.builder("b").build());
+
+        options.addOptionGroup(group1);
+
+        options.addOption(Option.builder("X").build());
+        options.addOption(Option.builder("y").build());
+
+        final Options underTest = new Options();
+        underTest.addOptions(options);

Review Comment:
   Updated.  I think I got them nailed down.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to