|
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 | 44 | import org.springframework.data.annotation.Transient;
|
|
55 | 57 | import org.springframework.data.mongodb.core.mapping.FieldType;
|
56 | 58 | import org.springframework.data.mongodb.core.mapping.MongoMappingContext;
|
57 | 59 | import org.springframework.data.mongodb.core.mapping.MongoPersistentEntity;
|
58 |
| -import org.springframework.data.mongodb.core.mapping.MongoPersistentProperty; |
59 | 60 | import org.springframework.data.mongodb.core.mapping.TextScore;
|
60 | 61 | import org.springframework.data.mongodb.core.mapping.Unwrapped;
|
61 | 62 | import org.springframework.data.mongodb.core.query.BasicQuery;
|
|
77 | 78 | * @author Mark Paluch
|
78 | 79 | */
|
79 | 80 | @ExtendWith(MockitoExtension.class)
|
| 81 | +@MockitoSettings(strictness = Strictness.LENIENT) |
80 | 82 | public class QueryMapperUnitTests {
|
81 | 83 |
|
82 | 84 | private QueryMapper mapper;
|
@@ -1439,18 +1441,18 @@ static class ClassWithGeoTypes {
|
1439 | 1441 | @Field("geoJsonPointWithNameViaFieldAnnotation") GeoJsonPoint namedGeoJsonPoint;
|
1440 | 1442 | }
|
1441 | 1443 |
|
1442 |
| - static class SimpeEntityWithoutId { |
| 1444 | + static class SimpleEntityWithoutId { |
1443 | 1445 |
|
1444 | 1446 | String stringProperty;
|
1445 | 1447 | Integer integerProperty;
|
1446 | 1448 | }
|
1447 | 1449 |
|
1448 | 1450 | static class EntityWithComplexValueTypeMap {
|
1449 |
| - Map<Integer, SimpeEntityWithoutId> map; |
| 1451 | + Map<Integer, SimpleEntityWithoutId> map; |
1450 | 1452 | }
|
1451 | 1453 |
|
1452 | 1454 | static class EntityWithComplexValueTypeList {
|
1453 |
| - List<SimpeEntityWithoutId> list; |
| 1455 | + List<SimpleEntityWithoutId> list; |
1454 | 1456 | }
|
1455 | 1457 |
|
1456 | 1458 | static class WithExplicitTargetTypes {
|
|
0 commit comments