DATAES-33 - Polishing
* Move @Parent property recognition to ElasticsearchPersistentProperty * Move type contraints for @Version and @Parent fields to ElasticsearchPersistentProperty to fail faster * remove unused constant SUPPORTED_ID_TYPES from SimpleElasticsearchPersistentProperty Original pull request: #208
This commit is contained in:
@@ -37,7 +37,7 @@ import org.springframework.util.ReflectionUtils;
|
||||
*/
|
||||
public class SimpleElasticsearchPersistentEntityTests {
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
@Test(expected = MappingException.class)
|
||||
public void shouldThrowExceptionGivenVersionPropertyIsNotLong() throws NoSuchFieldException, IntrospectionException {
|
||||
// given
|
||||
TypeInformation typeInformation = ClassTypeInformation.from(EntityWithWrongVersionType.class);
|
||||
|
||||
Reference in New Issue
Block a user