DATACMNS-1101 - Remove Optional from PersistentProperty.getComponentType(…)/getMapValueType(…).

This commit is contained in:
Mark Paluch
2017-06-29 10:42:32 +02:00
committed by Oliver Gierke
parent eb9854f18f
commit 2064c72a85
4 changed files with 11 additions and 17 deletions

View File

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

View File

@@ -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