@Test public void generatesProperNameUsingSpecifiedPrefixAndUniqueTokenGenerator() { final String prefix = "skin"; final UniqueTokenBasedDynamicSkinCssFileNamer namer = new UniqueTokenBasedDynamicSkinCssFileNamer(prefix, this.generator); final String result = namer.generateCssFileName(this.data); assertEquals(prefix + this.uniqueToken + ".css", result); }
@Override public String generateCssFileName(DynamicSkinInstanceData data) { final String prefixToUse = this.prefix == null ? data.getSkinName() : this.prefix; return prefixToUse + this.getUniqueToken(data) + ".css"; }
UniqueTokenBasedDynamicSkinCssFileNamer implements DynamicSkinCssFileNamer { @Override public String generateCssFileName(DynamicSkinInstanceData data) { final String prefixToUse = this.prefix == null ? data.getSkinName() : this.prefix; return prefixToUse + this.getUniqueToken(data) + ".css"; } }
UniqueTokenBasedDynamicSkinCssFileNamer implements DynamicSkinCssFileNamer { @Override public String generateCssFileName(DynamicSkinInstanceData data) { final String prefixToUse = this.prefix == null ? data.getSkinName() : this.prefix; return prefixToUse + this.getUniqueToken(data) + ".css"; } UniqueTokenBasedDynamicSkinCssFileNamer(
            final DynamicSkinUniqueTokenGenerator generator); @Autowired  UniqueTokenBasedDynamicSkinCssFileNamer(
            @Value("${dynamic-skin.skin-prefix:skin}") final String prefix,
            final DynamicSkinUniqueTokenGenerator generator); }
UniqueTokenBasedDynamicSkinCssFileNamer implements DynamicSkinCssFileNamer { @Override public String generateCssFileName(DynamicSkinInstanceData data) { final String prefixToUse = this.prefix == null ? data.getSkinName() : this.prefix; return prefixToUse + this.getUniqueToken(data) + ".css"; } UniqueTokenBasedDynamicSkinCssFileNamer(
            final DynamicSkinUniqueTokenGenerator generator); @Autowired  UniqueTokenBasedDynamicSkinCssFileNamer(
            @Value("${dynamic-skin.skin-prefix:skin}") final String prefix,
            final DynamicSkinUniqueTokenGenerator generator); @Override String generateCssFileName(DynamicSkinInstanceData data); }
UniqueTokenBasedDynamicSkinCssFileNamer implements DynamicSkinCssFileNamer { @Override public String generateCssFileName(DynamicSkinInstanceData data) { final String prefixToUse = this.prefix == null ? data.getSkinName() : this.prefix; return prefixToUse + this.getUniqueToken(data) + ".css"; } UniqueTokenBasedDynamicSkinCssFileNamer(
            final DynamicSkinUniqueTokenGenerator generator); @Autowired  UniqueTokenBasedDynamicSkinCssFileNamer(
            @Value("${dynamic-skin.skin-prefix:skin}") final String prefix,
            final DynamicSkinUniqueTokenGenerator generator); @Override String generateCssFileName(DynamicSkinInstanceData data);  }