Skip to content

Commit

Permalink
Revert "[remkop#1319] add failing test"
Browse files Browse the repository at this point in the history
This reverts commit 88cfd06.
  • Loading branch information
MarkoMackic authored Oct 17, 2021
1 parent 37a613a commit 26c1cff
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/test/java/picocli/InheritedOptionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 26c1cff

Please sign in to comment.