@Test public void highlightBoth() { final List<Option> options = new ArrayList<>(); options.add(new Option("--assignee, -a=<String[]>", null)); options.add(new Option("--body, -b=<String>", null)); final Highlight highlight = new Highlight(options); assertEquals("send a " + "\u001B[0m\u001B[1mGET\u001B[0m request to " + "\u001B[0m\u001B[1m/some/place\u001B[0m with " + "\u001B[0m\u001B[1m--body\u001B[0m pointing to a json file", highlight.matches("send a `GET` request to `/some/place` with --body pointing to a json file")); }
public String matches(String text) { text = matches(text, flags); text = matches(text, code); return text; }
Highlight { public String matches(String text) { text = matches(text, flags); text = matches(text, code); return text; } }
Highlight { public String matches(String text) { text = matches(text, flags); text = matches(text, code); return text; } Highlight(final List<Option> options); }
Highlight { public String matches(String text) { text = matches(text, flags); text = matches(text, code); return text; } Highlight(final List<Option> options); String highlight(String text); String matches(String text); }
Highlight { public String matches(String text) { text = matches(text, flags); text = matches(text, code); return text; } Highlight(final List<Option> options); String highlight(String text); String matches(String text);  }