@Test public void defaultPatternTest() { BundleNameTemplate template = new BundleNameTemplate(null); assertEquals("test\\.css", template.forGroup("test", ResourceHtmlTag.CSS)); assertEquals("test\\.js", template.forGroup("test", ResourceHtmlTag.JS)); }
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();  }