26
26
import org .junit .experimental .runners .Enclosed ;
27
27
import org .junit .rules .ExpectedException ;
28
28
import org .junit .runner .RunWith ;
29
- import org .junit .runners .Parameterized ;
30
29
import org .mockito .Mockito ;
31
30
32
31
import static org .junit .Assert .assertEquals ;
33
- import static org .mockito .ArgumentMatchers .anyObject ;
32
+ import static org .mockito .ArgumentMatchers .any ;
34
33
import static org .mockito .Mockito .times ;
35
34
import static org .mockito .Mockito .verify ;
36
35
@@ -50,16 +49,16 @@ public void bulkSetElements() {
50
49
// If bulkset contains only one type of element, we should use contains
51
50
assertEquals (true , Contains .within .test (new ReferenceVertex ("3" ), bulkSet ));
52
51
assertEquals (false , Contains .within .test (new ReferenceVertex ("4" ), bulkSet ));
53
- verify (bulkSet , times (2 )).contains (anyObject ());
52
+ verify (bulkSet , times (2 )).contains (any ());
54
53
// we should also not use contains if we test for different type
55
54
assertEquals (false , Contains .within .test (new ReferenceVertexProperty <>("2" , "label" , "value" ), bulkSet ));
56
- verify (bulkSet , times (2 )).contains (anyObject ());
55
+ verify (bulkSet , times (2 )).contains (any ());
57
56
58
57
// If bulkset contains different types of elements, we can no longer use contains
59
58
bulkSet .add ("test string" , 1 );
60
59
assertEquals (true , Contains .within .test (new ReferenceVertex ("3" ), bulkSet ));
61
60
assertEquals (false , Contains .within .test (new ReferenceVertex ("4" ), bulkSet ));
62
61
assertEquals (false , Contains .within .test (new ReferenceVertexProperty <>("2" , "label" , "value" ), bulkSet ));
63
- verify (bulkSet , times (2 )).contains (anyObject ());
62
+ verify (bulkSet , times (2 )).contains (any ());
64
63
}
65
64
}
0 commit comments