HyperlinkAction extends AbstractHyperlinkAction<URI> { public Action getDesktopAction() { return desktopAction; } HyperlinkAction();  HyperlinkAction(Action desktopAction);  HyperlinkAction(URI uri, Action desktopAction); static HyperlinkAction createHyperlinkAction(URI uri); static HyperlinkAction createHyperlinkAction(URI uri, Action type); @Override void actionPerformed(ActionEvent e); Action getDesktopAction();  }
@Test public void testUriActionEmptyConstructor() { if (GraphicsEnvironment.isHeadless()) { LOG.fine("cannot run ui test - headless environment"); return; } HyperlinkAction action = new HyperlinkAction(); assertEquals(Desktop.Action.BROWSE, action.getDesktopAction()); }