DATACMNS-1671 - Forward-port unit test.

Add unit test to remain consistent across branches.
This commit is contained in:
Mark Paluch
2020-02-24 15:40:08 +01:00
parent 64d08294ae
commit 09e3bedf74

View File

@@ -216,13 +216,14 @@ public class MappingAuditableBeanWrapperFactoryUnitTests {
});
}
@Test // DATACMNS-1461
@Test // DATACMNS-1461, DATACMNS-1671
public void skipsNullIntermediatesWhenSettingProperties() {
WithEmbedded withEmbedded = new WithEmbedded();
assertThat(factory.getBeanWrapperFor(withEmbedded)).hasValueSatisfying(it -> {
assertThatCode(() -> it.setCreatedBy("user")).doesNotThrowAnyException();
assertThatCode(() -> it.setLastModifiedDate(Instant.now())).doesNotThrowAnyException();
});
}