From 727cc913cc5cf40c6e30292be2f74c88639b44c9 Mon Sep 17 00:00:00 2001 From: Marko Mackic Date: Sun, 17 Oct 2021 21:33:45 +0200 Subject: [PATCH] Revert "[#1319] add failing test" This reverts commit 88cfd06e9ea5824f120a9e09c5b8677c5d6a675e. --- .../java/picocli/InheritedOptionTest.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/test/java/picocli/InheritedOptionTest.java b/src/test/java/picocli/InheritedOptionTest.java index 2c5113d90..2add6cf8f 100644 --- a/src/test/java/picocli/InheritedOptionTest.java +++ b/src/test/java/picocli/InheritedOptionTest.java @@ -557,24 +557,4 @@ class Example { } // see also picocli-annotation-processing-tests/src/test/java/picocli/annotation/processing/tests/Issue1316Test.java new CommandLine(new Example()); // succeeds without error } - - @Ignore("Needs fix for #1319") - @Test - public void testIssue1319() { - @Command(scope = CommandLine.ScopeType.INHERIT - , mixinStandardHelpOptions = true - , subcommands = { CommandLine.HelpCommand.class } - ) - class InheritHelpApp { - int subFoo; - - @Command() - void sub(@Option(names = "-foo") int foo) { - subFoo = foo; - } - } - InheritHelpApp app = new InheritHelpApp(); - new CommandLine(app).execute("sub", "-foo", "42" ); - assertEquals(42, app.subFoo); - } }