From ce178f76ebc1fa7aa884f0741f58fc5c13b2f168 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 5 Sep 2019 13:14:39 +0200 Subject: [PATCH] Add missing Temporal tests in BeanUtilsTests This change will help to serve as a regression test. --- .../java/org/springframework/beans/BeanUtilsTests.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-beans/src/test/java/org/springframework/beans/BeanUtilsTests.java b/spring-beans/src/test/java/org/springframework/beans/BeanUtilsTests.java index 27b57294ab..544d06750a 100644 --- a/spring-beans/src/test/java/org/springframework/beans/BeanUtilsTests.java +++ b/spring-beans/src/test/java/org/springframework/beans/BeanUtilsTests.java @@ -23,6 +23,7 @@ import java.lang.reflect.Method; import java.net.URI; import java.net.URL; import java.time.DayOfWeek; +import java.time.LocalDateTime; import java.util.Date; import java.util.List; import java.util.Locale; @@ -297,7 +298,7 @@ class BeanUtilsTests { @ValueSource(classes = { boolean.class, char.class, byte.class, short.class, int.class, long.class, float.class, double.class, Boolean.class, Character.class, Byte.class, Short.class, Integer.class, Long.class, Float.class, Double.class, - DayOfWeek.class, String.class, Date.class, URI.class, URL.class, Locale.class, Class.class + DayOfWeek.class, String.class, LocalDateTime.class, Date.class, URI.class, URL.class, Locale.class, Class.class }) void isSimpleValueType(Class type) { assertThat(BeanUtils.isSimpleValueType(type)).as("Type [" + type.getName() + "] should be a simple value type").isTrue(); @@ -313,8 +314,8 @@ class BeanUtilsTests { @ValueSource(classes = { boolean.class, char.class, byte.class, short.class, int.class, long.class, float.class, double.class, Boolean.class, Character.class, Byte.class, Short.class, Integer.class, Long.class, Float.class, Double.class, - DayOfWeek.class, String.class, Date.class, URI.class, URL.class, Locale.class, Class.class, - boolean[].class, Boolean[].class, Date[].class + DayOfWeek.class, String.class, LocalDateTime.class, Date.class, URI.class, URL.class, Locale.class, Class.class, + boolean[].class, Boolean[].class, LocalDateTime[].class, Date[].class }) void isSimpleProperty(Class type) { assertThat(BeanUtils.isSimpleProperty(type)).as("Type [" + type.getName() + "] should be a simple property").isTrue();