@Test public void testAnchor() { String url = "http: Component component = TextParsers.LEGACY.parse("foo " + url); TextComponent expected = TextComponent.of("foo ") .append(TextComponent.of(url).clickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, url))); Assert.assertEquals(expected, component); }
@Override public Component parse(String source) { return ComponentParser.from(source); }
LegacyParser implements TextParser { @Override public Component parse(String source) { return ComponentParser.from(source); } }
LegacyParser implements TextParser { @Override public Component parse(String source) { return ComponentParser.from(source); }  }
LegacyParser implements TextParser { @Override public Component parse(String source) { return ComponentParser.from(source); }  @Override Component parse(String source); }
LegacyParser implements TextParser { @Override public Component parse(String source) { return ComponentParser.from(source); }  @Override Component parse(String source);  }