@Test public void getNewValue_matcherGroup() { ReplaceResourcePropertyValues action = new ReplaceResourcePropertyValuesRegex("(" + OLD_VAL + ")", NEW_VAL + "-$1", Arrays.asList()); assertEquals("newVal-oldVal", action.getNewValue("oldVal")); assertEquals("newVal-oldVal#newVal-oldVal", action.getNewValue("oldVal#oldVal")); }
@Override protected String getNewValue(String propertyValue) { return propertyValue.replaceAll(searchRegex, replacement); }
ReplaceResourcePropertyValuesRegex extends ReplaceResourcePropertyValues { @Override protected String getNewValue(String propertyValue) { return propertyValue.replaceAll(searchRegex, replacement); } }
ReplaceResourcePropertyValuesRegex extends ReplaceResourcePropertyValues { @Override protected String getNewValue(String propertyValue) { return propertyValue.replaceAll(searchRegex, replacement); } ReplaceResourcePropertyValuesRegex(String searchRegex, String replacement, List<String> propertyNames); }
ReplaceResourcePropertyValuesRegex extends ReplaceResourcePropertyValues { @Override protected String getNewValue(String propertyValue) { return propertyValue.replaceAll(searchRegex, replacement); } ReplaceResourcePropertyValuesRegex(String searchRegex, String replacement, List<String> propertyNames);  }
ReplaceResourcePropertyValuesRegex extends ReplaceResourcePropertyValues { @Override protected String getNewValue(String propertyValue) { return propertyValue.replaceAll(searchRegex, replacement); } ReplaceResourcePropertyValuesRegex(String searchRegex, String replacement, List<String> propertyNames);   }