@Test public void testNavigate() { handler.async(); getComponent(BrowserUtil.class)._setLauncher(new BrowserUtil.Launcher() { @Override public void launchBrowser(final String url) { handler.done(new Runnable() { @Override public void run() { Assert.assertEquals("http: } }); } }); Assert.assertTrue(recognizer.navigate(getProject(), "http: }
@Override public boolean navigate(Project project, String hyperlink) { if(hyperlink.matches("https?: project.getComponent(BrowserUtil.class).launchBrowser(hyperlink); return true; } else { return false; } }
HREFLinkRecognizer implements Recognizer { @Override public boolean navigate(Project project, String hyperlink) { if(hyperlink.matches("https?: project.getComponent(BrowserUtil.class).launchBrowser(hyperlink); return true; } else { return false; } } }
HREFLinkRecognizer implements Recognizer { @Override public boolean navigate(Project project, String hyperlink) { if(hyperlink.matches("https?: project.getComponent(BrowserUtil.class).launchBrowser(hyperlink); return true; } else { return false; } }  }
HREFLinkRecognizer implements Recognizer { @Override public boolean navigate(Project project, String hyperlink) { if(hyperlink.matches("https?: project.getComponent(BrowserUtil.class).launchBrowser(hyperlink); return true; } else { return false; } }  @Override void recognize(String content, final List<Candidate> candidates); @Override boolean navigate(Project project, String hyperlink); }
HREFLinkRecognizer implements Recognizer { @Override public boolean navigate(Project project, String hyperlink) { if(hyperlink.matches("https?: project.getComponent(BrowserUtil.class).launchBrowser(hyperlink); return true; } else { return false; } }  @Override void recognize(String content, final List<Candidate> candidates); @Override boolean navigate(Project project, String hyperlink);  }