Skip to content

Commit

Permalink
Ensure ANSI is disabled in ManPageGeneratorTest regardless of environ…
Browse files Browse the repository at this point in the history
…ment (issue #1103)
  • Loading branch information
dwalluck authored and remkop committed Sep 11, 2020
1 parent af6f290 commit b8dcc00
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package picocli.codegen.docgen.manpage;

import org.junit.Rule;
import org.junit.Test;
import org.junit.contrib.java.lang.system.ProvideSystemProperty;
import org.junit.contrib.java.lang.system.RestoreSystemProperties;
import org.junit.rules.TestRule;
import picocli.CommandLine;
import picocli.CommandLine.ArgGroup;
import picocli.CommandLine.Command;
Expand All @@ -24,6 +28,11 @@
import static org.junit.Assert.*;

public class ManPageGeneratorTest {
@Rule
public final TestRule restoreSystemProperties = new RestoreSystemProperties();

@Rule
public final ProvideSystemProperty ansiOFF = new ProvideSystemProperty("picocli.ansi", "false");

@Test
public void generateManPage() throws IOException {
Expand Down

0 comments on commit b8dcc00

Please sign in to comment.