|
28 | 28 | import java.util.Map;
|
29 | 29 | import java.util.Optional;
|
30 | 30 |
|
31 |
| -import lombok.Data; |
32 | 31 | import org.bson.conversions.Bson;
|
33 | 32 | import org.bson.types.Code;
|
34 | 33 | import org.bson.types.ObjectId;
|
|
37 | 36 | import org.junit.jupiter.api.extension.ExtendWith;
|
38 | 37 | import org.mockito.Mock;
|
39 | 38 | import org.mockito.junit.jupiter.MockitoExtension;
|
| 39 | +import org.mockito.junit.jupiter.MockitoSettings; |
| 40 | +import org.mockito.quality.Strictness; |
| 41 | + |
40 | 42 | import org.springframework.core.convert.converter.Converter;
|
41 | 43 | import org.springframework.data.annotation.Id;
|
42 |
| -import org.springframework.data.annotation.Transient; |
43 | 44 | import org.springframework.data.convert.WritingConverter;
|
44 | 45 | import org.springframework.data.domain.Sort;
|
45 | 46 | import org.springframework.data.domain.Sort.Direction;
|
|
56 | 57 | import org.springframework.data.mongodb.core.mapping.FieldType;
|
57 | 58 | import org.springframework.data.mongodb.core.mapping.MongoMappingContext;
|
58 | 59 | import org.springframework.data.mongodb.core.mapping.MongoPersistentEntity;
|
59 |
| -import org.springframework.data.mongodb.core.mapping.MongoPersistentProperty; |
60 | 60 | import org.springframework.data.mongodb.core.mapping.TextScore;
|
61 | 61 | import org.springframework.data.mongodb.core.query.BasicQuery;
|
62 | 62 | import org.springframework.data.mongodb.core.query.Criteria;
|
|
77 | 77 | * @author Mark Paluch
|
78 | 78 | */
|
79 | 79 | @ExtendWith(MockitoExtension.class)
|
| 80 | +@MockitoSettings(strictness = Strictness.LENIENT) |
80 | 81 | public class QueryMapperUnitTests {
|
81 | 82 |
|
82 | 83 | private QueryMapper mapper;
|
@@ -1267,18 +1268,18 @@ static class ClassWithGeoTypes {
|
1267 | 1268 | @Field("geoJsonPointWithNameViaFieldAnnotation") GeoJsonPoint namedGeoJsonPoint;
|
1268 | 1269 | }
|
1269 | 1270 |
|
1270 |
| - static class SimpeEntityWithoutId { |
| 1271 | + static class SimpleEntityWithoutId { |
1271 | 1272 |
|
1272 | 1273 | String stringProperty;
|
1273 | 1274 | Integer integerProperty;
|
1274 | 1275 | }
|
1275 | 1276 |
|
1276 | 1277 | static class EntityWithComplexValueTypeMap {
|
1277 |
| - Map<Integer, SimpeEntityWithoutId> map; |
| 1278 | + Map<Integer, SimpleEntityWithoutId> map; |
1278 | 1279 | }
|
1279 | 1280 |
|
1280 | 1281 | static class EntityWithComplexValueTypeList {
|
1281 |
| - List<SimpeEntityWithoutId> list; |
| 1282 | + List<SimpleEntityWithoutId> list; |
1282 | 1283 | }
|
1283 | 1284 |
|
1284 | 1285 | static class WithExplicitTargetTypes {
|
|
0 commit comments