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:
Oliver Gierke
2014-01-22 17:46:37 +01:00
parent 0ce214cd56
commit 6822f39e3b

View File

@@ -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());
}