File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
metafix/src/test/java/org/metafacture/metafix Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 19
19
import org .metafacture .framework .ObjectReceiver ;
20
20
21
21
import org .junit .jupiter .api .Test ;
22
+ import org .junit .jupiter .api .extension .ExtendWith ;
22
23
import org .mockito .InOrder ;
23
24
import org .mockito .Mock ;
24
25
import org .mockito .Mockito ;
25
- import org .mockito .MockitoAnnotations ;
26
26
import org .mockito .exceptions .base .MockitoAssertionError ;
27
+ import org .mockito .junit .jupiter .MockitoExtension ;
27
28
28
29
/**
29
30
* Tests for class {@link ListFixPaths}.
30
31
*
31
32
* @author Fabian Steeg
32
33
*
33
34
*/
35
+ @ ExtendWith (MockitoExtension .class )
34
36
public final class ListFixPathsTest {
35
37
36
- private ListFixPaths lister ;
38
+ private final ListFixPaths lister = new ListFixPaths () ;
37
39
38
40
@ Mock
39
41
private ObjectReceiver <String > receiver ;
40
42
41
43
public ListFixPathsTest () {
42
- MockitoAnnotations .initMocks (this );
43
- lister = new ListFixPaths ();
44
44
}
45
45
46
46
@ Test
Original file line number Diff line number Diff line change 19
19
import org .metafacture .framework .ObjectReceiver ;
20
20
21
21
import org .junit .jupiter .api .Test ;
22
+ import org .junit .jupiter .api .extension .ExtendWith ;
22
23
import org .mockito .InOrder ;
23
24
import org .mockito .Mock ;
24
25
import org .mockito .Mockito ;
25
- import org .mockito .MockitoAnnotations ;
26
26
import org .mockito .exceptions .base .MockitoAssertionError ;
27
+ import org .mockito .junit .jupiter .MockitoExtension ;
27
28
28
29
/**
29
30
* Tests for class {@link ListFixValues}.
30
31
*
31
32
* @author Fabian Steeg
32
33
*
33
34
*/
35
+ @ ExtendWith (MockitoExtension .class )
34
36
public final class ListFixValuesTest {
35
37
36
38
private ListFixValues lister ;
@@ -39,7 +41,6 @@ public final class ListFixValuesTest {
39
41
private ObjectReceiver <String > receiver ;
40
42
41
43
public ListFixValuesTest () {
42
- MockitoAnnotations .initMocks (this );
43
44
}
44
45
45
46
@ Test
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public MetafixLookupTest() {
67
67
}
68
68
69
69
@ BeforeAll
70
- private static void setStubForWireMock () {
70
+ public static void setStubForWireMock () {
71
71
WIRE_MOCK_SERVER .start ();
72
72
73
73
// stubs for RDF
@@ -94,7 +94,7 @@ private static String loadFile(final String path) {
94
94
}
95
95
96
96
@ AfterAll
97
- private static void tearDownWireMock () {
97
+ public static void tearDownWireMock () {
98
98
WIRE_MOCK_SERVER .stop ();
99
99
}
100
100
You can’t perform that action at this time.
0 commit comments