File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/support Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 51
51
*/
52
52
@ ExtendWith (MockitoExtension .class )
53
53
@ MockitoSettings (strictness = Strictness .LENIENT )
54
- public class MongoRepositoryFactoryUnitTests {
54
+ class MongoRepositoryFactoryUnitTests {
55
55
56
56
@ Mock MongoOperations template ;
57
57
58
- MongoConverter converter = new MappingMongoConverter (NoOpDbRefResolver .INSTANCE , new MongoMappingContext ());
58
+ private MongoConverter converter = new MappingMongoConverter (NoOpDbRefResolver .INSTANCE , new MongoMappingContext ());
59
59
60
60
@ BeforeEach
61
- public void setUp () {
61
+ void setUp () {
62
62
when (template .getConverter ()).thenReturn (converter );
63
63
}
64
64
65
65
@ Test
66
- public void usesMappingMongoEntityInformationIfMappingContextSet () {
66
+ void usesMappingMongoEntityInformationIfMappingContextSet () {
67
67
68
68
MongoRepositoryFactory factory = new MongoRepositoryFactory (template );
69
69
EntityInformation <Person , Serializable > entityInformation = factory .getEntityInformation (Person .class );
70
70
assertThat (entityInformation instanceof MappingMongoEntityInformation ).isTrue ();
71
71
}
72
72
73
73
@ Test // DATAMONGO-385
74
- public void createsRepositoryWithIdTypeLong () {
74
+ void createsRepositoryWithIdTypeLong () {
75
75
76
76
MongoRepositoryFactory factory = new MongoRepositoryFactory (template );
77
77
MyPersonRepository repository = factory .getRepository (MyPersonRepository .class );
You can’t perform that action at this time.
0 commit comments