DATACMNS-867 - Let lookups for a property's component and map value type use Optional.
This commit is contained in:
@@ -50,7 +50,8 @@ public class MappingMetadataTests {
|
||||
|
||||
PersistentEntity<?, SamplePersistentProperty> person = ctx.getRequiredPersistentEntity(PersonWithChildren.class);
|
||||
|
||||
person.doWithAssociations((AssociationHandler<SamplePersistentProperty>) association -> assertThat(
|
||||
association.getInverse().getComponentType()).isEqualTo(Child.class));
|
||||
person.doWithAssociations((AssociationHandler<SamplePersistentProperty>) association -> {
|
||||
assertThat(association.getInverse().getComponentType()).hasValue(Child.class);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class AbstractPersistentPropertyUnitTests {
|
||||
|
||||
@Test // DATACMNS-68
|
||||
public void discoversComponentTypeCorrectly() throws Exception {
|
||||
assertThat(getProperty(TestClassComplex.class, "testClassSet").getComponentType()).isEqualTo(Object.class);
|
||||
assertThat(getProperty(TestClassComplex.class, "testClassSet").getComponentType()).hasValue(Object.class);
|
||||
}
|
||||
|
||||
@Test // DATACMNS-101
|
||||
|
||||
Reference in New Issue
Block a user