Skip to content

Commit d1b1dfb

Browse files
mp911deodrotbohm
authored andcommitted
DATAMONGO-1992 - Disable test for storing Optional properties.
Reading java.util.Optional is now no longer possible as we do not allow modifying immutable (final) fields.
1 parent d1dea13 commit d1b1dfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/convert/MappingMongoConverterUnitTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -1694,6 +1694,7 @@ public void writesOptionalsCorrectly() {
16941694
}
16951695

16961696
@Test // DATAMONGO-1128
1697+
@Ignore("Broken by DATAMONGO-1992 - In fact, storing Optional fields seems an anti-pattern.")
16971698
public void readsOptionalsCorrectly() {
16981699

16991700
LocalDateTime now = LocalDateTime.now();

0 commit comments

Comments
 (0)