@Test public void testEmptyUuid() { RequestUriToThemeUuidTransformer sut = new RequestUriToThemeUuidTransformer("_uuid_", ".css"); assertEquals("", sut.transform("/blah/whatever/someversionhere_uuid_")); }
@Override public String transform(final String inTransformType) { return inTransformType == null ? null : StringUtils.removeEndIgnoreCase( StringUtils.substringAfterLast(inTransformType, uuidSeparator), fileExtension).toLowerCase(); }
RequestUriToThemeUuidTransformer implements Transformer<String, String> { @Override public String transform(final String inTransformType) { return inTransformType == null ? null : StringUtils.removeEndIgnoreCase( StringUtils.substringAfterLast(inTransformType, uuidSeparator), fileExtension).toLowerCase(); } }
RequestUriToThemeUuidTransformer implements Transformer<String, String> { @Override public String transform(final String inTransformType) { return inTransformType == null ? null : StringUtils.removeEndIgnoreCase( StringUtils.substringAfterLast(inTransformType, uuidSeparator), fileExtension).toLowerCase(); } RequestUriToThemeUuidTransformer(final String inUuidSeparator, final String inFileExtension); }
RequestUriToThemeUuidTransformer implements Transformer<String, String> { @Override public String transform(final String inTransformType) { return inTransformType == null ? null : StringUtils.removeEndIgnoreCase( StringUtils.substringAfterLast(inTransformType, uuidSeparator), fileExtension).toLowerCase(); } RequestUriToThemeUuidTransformer(final String inUuidSeparator, final String inFileExtension); @Override String transform(final String inTransformType); }
RequestUriToThemeUuidTransformer implements Transformer<String, String> { @Override public String transform(final String inTransformType) { return inTransformType == null ? null : StringUtils.removeEndIgnoreCase( StringUtils.substringAfterLast(inTransformType, uuidSeparator), fileExtension).toLowerCase(); } RequestUriToThemeUuidTransformer(final String inUuidSeparator, final String inFileExtension); @Override String transform(final String inTransformType);  }