@Test public void testGenerateURLFragment() { StandardURLTagFragmentGenerator g = new StandardURLTagFragmentGenerator(); assertEquals(" href=\"abc\"", g.generateURLFragment("abc")); assertEquals(" href=\"images/abc.png\"", g.generateURLFragment("images/abc.png")); assertEquals(" href=\"http: g.generateURLFragment("http: }
@Override public String generateURLFragment(String urlText) { return " href=\"" + urlText + "\""; }
StandardURLTagFragmentGenerator implements URLTagFragmentGenerator { @Override public String generateURLFragment(String urlText) { return " href=\"" + urlText + "\""; } }
StandardURLTagFragmentGenerator implements URLTagFragmentGenerator { @Override public String generateURLFragment(String urlText) { return " href=\"" + urlText + "\""; } StandardURLTagFragmentGenerator(); }
StandardURLTagFragmentGenerator implements URLTagFragmentGenerator { @Override public String generateURLFragment(String urlText) { return " href=\"" + urlText + "\""; } StandardURLTagFragmentGenerator(); @Override String generateURLFragment(String urlText); }
StandardURLTagFragmentGenerator implements URLTagFragmentGenerator { @Override public String generateURLFragment(String urlText) { return " href=\"" + urlText + "\""; } StandardURLTagFragmentGenerator(); @Override String generateURLFragment(String urlText);  }