Skip to content

Commit

Permalink
[#1930] fix failing tests for testEndOfOptionsWithoutOptions, testNam…
Browse files Browse the repository at this point in the history
…elessCommand, and testHiddenOptions
MikeTheSnowman authored and remkop committed Jan 27, 2023

Verified

This commit was signed with the committer’s verified signature.
neo1973 Markus Härer
1 parent c7853dc commit 66279cc
Showing 4 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -210,7 +210,6 @@ class MyApp {
assertEquals(expected, sw.toString());
}

@Ignore("[#1930] - needs test fixes for #1896 changes")
@Test
public void testHiddenOptions() throws IOException {

@@ -288,7 +287,6 @@ private String readAndClose(InputStream in) throws IOException {
}
}

@Ignore("[#1930] - needs test fixes for #1896 changes")
@Test
public void testEndOfOptionsWithoutOptions() throws IOException {

@@ -458,7 +456,6 @@ public Integer call() throws Exception {
}
}

@Ignore("[#1930] - needs test fixes for #1896 changes")
@Test
public void testNamelessCommand() throws IOException {
File outdir = new File(System.getProperty("java.io.tmpdir"), "manpage" + System.currentTimeMillis());
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// tag::picocli-generated-full-manpage[]
// tag::picocli-generated-man-section-header[]
:doctype: manpage
:revnumber:
:revnumber:
:manmanual: <main class> Manual
:mansource:
:mansource:
:man-linkstyle: pass:[blue R < >]
= <main class>(1)

@@ -12,7 +12,7 @@
// tag::picocli-generated-man-section-name[]
== Name

<main class> -
<main class> -

// end::picocli-generated-man-section-name[]

@@ -31,13 +31,14 @@
// end::picocli-generated-man-section-description[]

// tag::picocli-generated-man-section-options[]

// end::picocli-generated-man-section-options[]

// tag::picocli-generated-man-section-arguments[]
== Arguments

_<file>_::


// end::picocli-generated-man-section-arguments[]

Original file line number Diff line number Diff line change
@@ -31,10 +31,6 @@ This app does great things.
// end::picocli-generated-man-section-description[]

// tag::picocli-generated-man-section-options[]
== Options

*--*::
This option can be used to separate command-line options from the list of positional parameters.

// end::picocli-generated-man-section-options[]

Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ This app does great things.
// end::picocli-generated-man-section-description[]

// tag::picocli-generated-man-section-options[]

// end::picocli-generated-man-section-options[]

// tag::picocli-generated-man-section-arguments[]

0 comments on commit 66279cc

Please sign in to comment.