@Test public void removePrefixAndSuffix() { final String expected = "value"; final String raw = DateTimeValueConverter.PREFIX + expected + DateTimeValueConverter.SUFFIX; final String actual = converter.removePrefixAndSuffix(raw); assertEquals(expected, actual); }
String removePrefixAndSuffix(final String rawValue) { return rawValue.replace(PREFIX, "").replace(SUFFIX, "").trim(); }
DateTimeValueConverter { String removePrefixAndSuffix(final String rawValue) { return rawValue.replace(PREFIX, "").replace(SUFFIX, "").trim(); } }
DateTimeValueConverter { String removePrefixAndSuffix(final String rawValue) { return rawValue.replace(PREFIX, "").replace(SUFFIX, "").trim(); } @Inject  DateTimeValueConverter(final DateValueFormatter dateValueFormatter,
                                  final TimeValueFormatter timeValueFormatter); }
DateTimeValueConverter { String removePrefixAndSuffix(final String rawValue) { return rawValue.replace(PREFIX, "").replace(SUFFIX, "").trim(); } @Inject  DateTimeValueConverter(final DateValueFormatter dateValueFormatter,
                                  final TimeValueFormatter timeValueFormatter); String toDMNString(final DateTimeValue value); DateTimeValue fromDMNString(final String dmnString); String toDisplay(final String rawValue); }
DateTimeValueConverter { String removePrefixAndSuffix(final String rawValue) { return rawValue.replace(PREFIX, "").replace(SUFFIX, "").trim(); } @Inject  DateTimeValueConverter(final DateValueFormatter dateValueFormatter,
                                  final TimeValueFormatter timeValueFormatter); String toDMNString(final DateTimeValue value); DateTimeValue fromDMNString(final String dmnString); String toDisplay(final String rawValue);  }