Skip to content

Commit 66279cc

Browse files
MikeTheSnowmanremkop
authored andcommitted
[#1930] fix failing tests for testEndOfOptionsWithoutOptions, testNamelessCommand, and testHiddenOptions
1 parent c7853dc commit 66279cc

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

picocli-codegen/src/test/java/picocli/codegen/docgen/manpage/ManPageGeneratorTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ class MyApp {
210210
assertEquals(expected, sw.toString());
211211
}
212212

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

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

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

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

461-
@Ignore("[#1930] - needs test fixes for #1896 changes")
462459
@Test
463460
public void testNamelessCommand() throws IOException {
464461
File outdir = new File(System.getProperty("java.io.tmpdir"), "manpage" + System.currentTimeMillis());

picocli-codegen/src/test/resources/manpagegenerator/main_class.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// tag::picocli-generated-full-manpage[]
22
// tag::picocli-generated-man-section-header[]
33
:doctype: manpage
4-
:revnumber:
4+
:revnumber:
55
:manmanual: <main class> Manual
6-
:mansource:
6+
:mansource:
77
:man-linkstyle: pass:[blue R < >]
88
= <main class>(1)
99

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

15-
<main class> -
15+
<main class> -
1616

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

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

3333
// tag::picocli-generated-man-section-options[]
34+
3435
// end::picocli-generated-man-section-options[]
3536

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

3940
_<file>_::
40-
41+
4142

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

picocli-codegen/src/test/resources/testEndOfOptionsWithoutOptions.manpage.adoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ This app does great things.
3131
// end::picocli-generated-man-section-description[]
3232

3333
// tag::picocli-generated-man-section-options[]
34-
== Options
35-
36-
*--*::
37-
This option can be used to separate command-line options from the list of positional parameters.
3834

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

picocli-codegen/src/test/resources/testHiddenOptions.manpage.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ This app does great things.
3131
// end::picocli-generated-man-section-description[]
3232

3333
// tag::picocli-generated-man-section-options[]
34+
3435
// end::picocli-generated-man-section-options[]
3536

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

0 commit comments

Comments
 (0)