Skip to content

Commit c0e7bfb

Browse files
committed
gh-4901: introduce ValidatingEntityCallback
Signed-off-by: felgentraeger <[email protected]>
1 parent 2e1bdcd commit c0e7bfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/mapping/event/ValidatingEntityCallbackUnitTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void setUp() {
4343
}
4444
}
4545

46-
@Test
46+
@Test // GH-4910
4747
void invalidModel_throwsException() {
4848
Coordinates coordinates = new Coordinates(-1, -1);
4949

@@ -52,7 +52,7 @@ void invalidModel_throwsException() {
5252
.satisfies(e -> assertThat(e.getConstraintViolations()).hasSize(2));
5353
}
5454

55-
@Test
55+
@Test // GH-4910
5656
void validModel_noExceptionThrown() {
5757
Coordinates coordinates = new Coordinates(0, 0);
5858
Object entity = callback.onBeforeSave(coordinates, coordinates.toDocument(), "coordinates");

0 commit comments

Comments
 (0)