DATACMNS-380 - MappingContext.getPersistentPropertyPath(…) now throws MappingException.
This commit is contained in:
@@ -185,6 +185,14 @@ public class AbstractMappingContextUnitTests {
|
||||
assertThat(path.getLeafProperty().getName(), is("name"));
|
||||
}
|
||||
|
||||
/**
|
||||
* @see DATACMNS-380
|
||||
*/
|
||||
@Test(expected = MappingException.class)
|
||||
public void rejectsInvalidPropertyReferenceWithMappingException() {
|
||||
context.getPersistentPropertyPath("foo", Sample.class);
|
||||
}
|
||||
|
||||
class Person {
|
||||
String name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user