@Test public void testConvertToModel() { Assertions.assertThrows(UnsupportedOperationException.class, () -> { new JodaLocalDateTimeToStringConverter().convertToModel(null, null, null); }); }
@CheckForNull @Override public LocalDateTime convertToModel(@CheckForNull String value, @CheckForNull Class<? extends LocalDateTime> targetType, @CheckForNull Locale locale) throws ConversionException { throw new UnsupportedOperationException(getClass().getName() + " only supports convertToPresentation"); }
JodaLocalDateTimeToStringConverter implements Converter<String, LocalDateTime> { @CheckForNull @Override public LocalDateTime convertToModel(@CheckForNull String value, @CheckForNull Class<? extends LocalDateTime> targetType, @CheckForNull Locale locale) throws ConversionException { throw new UnsupportedOperationException(getClass().getName() + " only supports convertToPresentation"); } }
JodaLocalDateTimeToStringConverter implements Converter<String, LocalDateTime> { @CheckForNull @Override public LocalDateTime convertToModel(@CheckForNull String value, @CheckForNull Class<? extends LocalDateTime> targetType, @CheckForNull Locale locale) throws ConversionException { throw new UnsupportedOperationException(getClass().getName() + " only supports convertToPresentation"); }  }
JodaLocalDateTimeToStringConverter implements Converter<String, LocalDateTime> { @CheckForNull @Override public LocalDateTime convertToModel(@CheckForNull String value, @CheckForNull Class<? extends LocalDateTime> targetType, @CheckForNull Locale locale) throws ConversionException { throw new UnsupportedOperationException(getClass().getName() + " only supports convertToPresentation"); }  @CheckForNull @Override LocalDateTime convertToModel(@CheckForNull String value,
            @CheckForNull Class<? extends LocalDateTime> targetType,
            @CheckForNull Locale locale); @CheckForNull @Override String convertToPresentation(@CheckForNull LocalDateTime value,
            @CheckForNull Class<? extends String> targetType,
            @CheckForNull Locale locale); @Override Class<LocalDateTime> getModelType(); @Override Class<String> getPresentationType(); }
JodaLocalDateTimeToStringConverter implements Converter<String, LocalDateTime> { @CheckForNull @Override public LocalDateTime convertToModel(@CheckForNull String value, @CheckForNull Class<? extends LocalDateTime> targetType, @CheckForNull Locale locale) throws ConversionException { throw new UnsupportedOperationException(getClass().getName() + " only supports convertToPresentation"); }  @CheckForNull @Override LocalDateTime convertToModel(@CheckForNull String value,
            @CheckForNull Class<? extends LocalDateTime> targetType,
            @CheckForNull Locale locale); @CheckForNull @Override String convertToPresentation(@CheckForNull LocalDateTime value,
            @CheckForNull Class<? extends String> targetType,
            @CheckForNull Locale locale); @Override Class<LocalDateTime> getModelType(); @Override Class<String> getPresentationType();  }