File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed
spring-data-mongodb/src/test/java/org/springframework/data/mongodb Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 30
30
31
31
import org .bson .types .Code ;
32
32
import org .bson .types .ObjectId ;
33
- import org .junit .Before ;
34
- import org .junit .Test ;
35
- import org .junit .runner . RunWith ;
33
+ import org .junit .jupiter . api . BeforeEach ;
34
+ import org .junit .jupiter . api . Test ;
35
+ import org .junit .jupiter . api . extension . ExtendWith ;
36
36
import org .mockito .Mock ;
37
- import org .mockito .junit .MockitoJUnitRunner ;
37
+ import org .mockito .junit .jupiter . MockitoExtension ;
38
38
import org .springframework .data .annotation .Id ;
39
39
import org .springframework .data .domain .Sort ;
40
40
import org .springframework .data .domain .Sort .Direction ;
69
69
* @author Christoph Strobl
70
70
* @author Mark Paluch
71
71
*/
72
- @ RunWith ( MockitoJUnitRunner .class )
72
+ @ ExtendWith ( MockitoExtension .class )
73
73
public class QueryMapperUnitTests {
74
74
75
75
QueryMapper mapper ;
@@ -78,8 +78,8 @@ public class QueryMapperUnitTests {
78
78
79
79
@ Mock MongoDbFactory factory ;
80
80
81
- @ Before
82
- public void setUp () {
81
+ @ BeforeEach
82
+ public void beforeEach () {
83
83
84
84
this .context = new MongoMappingContext ();
85
85
Original file line number Diff line number Diff line change 27
27
28
28
import org .bson .Document ;
29
29
import org .bson .types .ObjectId ;
30
- import org .junit .Before ;
31
- import org .junit .Test ;
32
-
30
+ import org .junit .jupiter .api .BeforeEach ;
31
+ import org .junit .jupiter .api .Test ;
33
32
import org .springframework .data .domain .Range ;
34
33
import org .springframework .data .domain .Range .Bound ;
35
34
import org .springframework .data .geo .Distance ;
@@ -73,8 +72,8 @@ public class MongoQueryCreatorUnitTests {
73
72
MappingContext <? extends MongoPersistentEntity <?>, MongoPersistentProperty > context ;
74
73
MongoConverter converter ;
75
74
76
- @ Before
77
- public void setUp () {
75
+ @ BeforeEach
76
+ public void beforeEach () {
78
77
79
78
context = new MongoMappingContext ();
80
79
You can’t perform that action at this time.
0 commit comments