File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
metafacture-csv/src/test/java/org/metafacture/csv Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org .metafacture .csv ;
18
18
19
+ import org .junit .Rule ;
19
20
import org .metafacture .framework .ObjectReceiver ;
20
21
21
22
import org .junit .Before ;
26
27
import org .mockito .Mockito ;
27
28
import org .mockito .MockitoAnnotations ;
28
29
import org .mockito .exceptions .base .MockitoAssertionError ;
30
+ import org .mockito .junit .MockitoJUnit ;
31
+ import org .mockito .junit .MockitoRule ;
29
32
30
33
import java .util .Arrays ;
31
34
import java .util .function .Consumer ;
@@ -53,13 +56,8 @@ public final class CsvEncoderTest {
53
56
private static final String VALUE5 = "e" ;
54
57
private static final String VALUE6 = "f" ;
55
58
56
- @ Before
57
- public void setup () {
58
- MockitoAnnotations .initMocks (this );
59
- CsvEncoder encoder = new CsvEncoder ();
60
- encoder .setReceiver (receiver );
61
- }
62
-
59
+ @ Rule
60
+ public MockitoRule rule = MockitoJUnit .rule ();
63
61
64
62
@ Test
65
63
public void shouldReceiveSingleRecord () {
You can’t perform that action at this time.
0 commit comments