@Test public void testExtractTime() { final String time = "22:45:00-03:00"; final String input = "2019-06-02T" + time; final String actual = converter.extractTime(input); assertEquals(time, actual); }
String extractTime(final String value) { if (value.length() <= DATE_LENGTH + 1) { return ""; } return value.substring(DATE_LENGTH + 1); }
DateTimeValueConverter { String extractTime(final String value) { if (value.length() <= DATE_LENGTH + 1) { return ""; } return value.substring(DATE_LENGTH + 1); } }
DateTimeValueConverter { String extractTime(final String value) { if (value.length() <= DATE_LENGTH + 1) { return ""; } return value.substring(DATE_LENGTH + 1); } @Inject  DateTimeValueConverter(final DateValueFormatter dateValueFormatter,
                                  final TimeValueFormatter timeValueFormatter); }
DateTimeValueConverter { String extractTime(final String value) { if (value.length() <= DATE_LENGTH + 1) { return ""; } return value.substring(DATE_LENGTH + 1); } @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 extractTime(final String value) { if (value.length() <= DATE_LENGTH + 1) { return ""; } return value.substring(DATE_LENGTH + 1); } @Inject  DateTimeValueConverter(final DateValueFormatter dateValueFormatter,
                                  final TimeValueFormatter timeValueFormatter); String toDMNString(final DateTimeValue value); DateTimeValue fromDMNString(final String dmnString); String toDisplay(final String rawValue);  }