@Test public void testExtractDate() { final String date = "2019-06-02"; final String input = date + "T22:45:00-03:00"; final String actual = converter.extractDate(input); assertEquals(date, actual); }
String extractDate(final String value) { return value.substring(0, DATE_LENGTH); }
DateTimeValueConverter { String extractDate(final String value) { return value.substring(0, DATE_LENGTH); } }
DateTimeValueConverter { String extractDate(final String value) { return value.substring(0, DATE_LENGTH); } @Inject  DateTimeValueConverter(final DateValueFormatter dateValueFormatter,
                                  final TimeValueFormatter timeValueFormatter); }
DateTimeValueConverter { String extractDate(final String value) { return value.substring(0, DATE_LENGTH); } @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 extractDate(final String value) { return value.substring(0, DATE_LENGTH); } @Inject  DateTimeValueConverter(final DateValueFormatter dateValueFormatter,
                                  final TimeValueFormatter timeValueFormatter); String toDMNString(final DateTimeValue value); DateTimeValue fromDMNString(final String dmnString); String toDisplay(final String rawValue);  }