@Test public void testGetLinkForCategory() { final String expResult = "/content/sample-page.11.html"; context.currentResource("/content/linkTypeCategory"); button = context.request().adaptTo(Button.class); String result = button.getLink(); assertEquals(expResult, result); }
@Override public String getLink() { return StringUtils.isNotBlank(url) ? url : DEFAULT_LINK; }
ButtonImpl implements Button { @Override public String getLink() { return StringUtils.isNotBlank(url) ? url : DEFAULT_LINK; } }
ButtonImpl implements Button { @Override public String getLink() { return StringUtils.isNotBlank(url) ? url : DEFAULT_LINK; }  }
ButtonImpl implements Button { @Override public String getLink() { return StringUtils.isNotBlank(url) ? url : DEFAULT_LINK; }  @Override String getText(); @Override String getLink(); @Override String getIcon(); @Override String getExportedType(); }
ButtonImpl implements Button { @Override public String getLink() { return StringUtils.isNotBlank(url) ? url : DEFAULT_LINK; }  @Override String getText(); @Override String getLink(); @Override String getIcon(); @Override String getExportedType();  }