DATACMNS-1101 - Remove Optional from PersistentProperty.getComponentType(…)/getMapValueType(…).
This commit is contained in:
committed by
Oliver Gierke
parent
eb9854f18f
commit
2064c72a85
@@ -51,7 +51,7 @@ public class MappingMetadataTests {
|
||||
PersistentEntity<?, SamplePersistentProperty> person = ctx.getRequiredPersistentEntity(PersonWithChildren.class);
|
||||
|
||||
person.doWithAssociations((AssociationHandler<SamplePersistentProperty>) association -> {
|
||||
assertThat(association.getInverse().getComponentType()).hasValue(Child.class);
|
||||
assertThat(association.getInverse().getComponentType()).isEqualTo(Child.class);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class AbstractPersistentPropertyUnitTests {
|
||||
|
||||
@Test // DATACMNS-68
|
||||
public void discoversComponentTypeCorrectly() throws Exception {
|
||||
assertThat(getProperty(TestClassComplex.class, "testClassSet").getComponentType()).hasValue(Object.class);
|
||||
assertThat(getProperty(TestClassComplex.class, "testClassSet").getComponentType()).isEqualTo(Object.class);
|
||||
}
|
||||
|
||||
@Test // DATACMNS-101
|
||||
|
||||
Reference in New Issue
Block a user