Skip to content

Commit 9a3889b

Browse files
committed
Align with breaking change in Spring Data MongoDB
See gh-25004
1 parent 2f17bd6 commit 9a3889b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfigurationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -44,8 +44,8 @@
4444
import org.springframework.data.mongodb.core.MongoTemplate;
4545
import org.springframework.data.mongodb.core.SimpleMongoClientDatabaseFactory;
4646
import org.springframework.data.mongodb.core.convert.MongoCustomConversions;
47-
import org.springframework.data.mongodb.core.mapping.BasicMongoPersistentEntity;
4847
import org.springframework.data.mongodb.core.mapping.MongoMappingContext;
48+
import org.springframework.data.mongodb.core.mapping.MongoPersistentEntity;
4949
import org.springframework.data.mongodb.core.mapping.MongoPersistentProperty;
5050
import org.springframework.data.mongodb.gridfs.GridFsTemplate;
5151
import org.springframework.test.util.ReflectionTestUtils;
@@ -177,7 +177,7 @@ void entityScanShouldSetInitialEntitySet() {
177177
void registersDefaultSimpleTypesWithMappingContext() {
178178
this.contextRunner.run((context) -> {
179179
MongoMappingContext mappingContext = context.getBean(MongoMappingContext.class);
180-
BasicMongoPersistentEntity<?> entity = mappingContext.getPersistentEntity(Sample.class);
180+
MongoPersistentEntity<?> entity = mappingContext.getPersistentEntity(Sample.class);
181181
MongoPersistentProperty dateProperty = entity.getPersistentProperty("date");
182182
assertThat(dateProperty.isEntity()).isFalse();
183183
});

0 commit comments

Comments
 (0)