diff --git a/src/test/java/org/springframework/data/util/ClassTypeInformationUnitTests.java b/src/test/java/org/springframework/data/util/ClassTypeInformationUnitTests.java index 508754b50..9975d097f 100644 --- a/src/test/java/org/springframework/data/util/ClassTypeInformationUnitTests.java +++ b/src/test/java/org/springframework/data/util/ClassTypeInformationUnitTests.java @@ -28,7 +28,6 @@ import java.util.Set; import org.hamcrest.Matchers; import org.junit.Test; -import org.springframework.core.SpringVersion; import org.springframework.data.mapping.Person; /** @@ -106,14 +105,7 @@ public class ClassTypeInformationUnitTests { property = information.getProperty("rawSet"); assertEquals(Set.class, property.getType()); - - // Spring 4 returns null for component types of raw types - if (SpringVersion.getVersion().startsWith("4")) { - assertThat(property.getComponentType(), nullValue()); - } else { - assertThat(property.getComponentType().getType(), is(Matchers.> equalTo(Object.class))); - } - + assertThat(property.getComponentType().getType(), is(Matchers.> equalTo(Object.class))); assertNull(property.getMapValueType()); }