DATACMNS-422 - Remove workaround in test cases after recent fix for generic component types.
Build should be fine on Spring 4 now.
This commit is contained in:
@@ -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.<Class<?>> equalTo(Object.class)));
|
||||
}
|
||||
|
||||
assertThat(property.getComponentType().getType(), is(Matchers.<Class<?>> equalTo(Object.class)));
|
||||
assertNull(property.getMapValueType());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user