@Test public void invalidTypeTest() { try { BundleNameTemplate template = new BundleNameTemplate(null); template.forGroup("whatever", null); fail("Exception expected"); } catch (NullPointerException e) { } }
public String forGroup(String groupName, ResourceHtmlTag tag) { return namePattern .replace("@groupName@", groupName) .replace("@extension@", tag.getExtension()); }
BundleNameTemplate { public String forGroup(String groupName, ResourceHtmlTag tag) { return namePattern .replace("@groupName@", groupName) .replace("@extension@", tag.getExtension()); } }
BundleNameTemplate { public String forGroup(String groupName, ResourceHtmlTag tag) { return namePattern .replace("@groupName@", groupName) .replace("@extension@", tag.getExtension()); } BundleNameTemplate(String namePattern); }
BundleNameTemplate { public String forGroup(String groupName, ResourceHtmlTag tag) { return namePattern .replace("@groupName@", groupName) .replace("@extension@", tag.getExtension()); } BundleNameTemplate(String namePattern); String forGroup(String groupName, ResourceHtmlTag tag); @Override boolean equals(Object o); @Override int hashCode(); }
BundleNameTemplate { public String forGroup(String groupName, ResourceHtmlTag tag) { return namePattern .replace("@groupName@", groupName) .replace("@extension@", tag.getExtension()); } BundleNameTemplate(String namePattern); String forGroup(String groupName, ResourceHtmlTag tag); @Override boolean equals(Object o); @Override int hashCode();  }