File tree Expand file tree Collapse file tree
benchmarks/src/main/java/org/apache/ignite/internal/benchmarks/jmh/misc
src/test/java/org/apache/ignite/internal/processors/cache/distributed/dht Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434import org .apache .ignite .internal .processors .cache .distributed .dht .topology .GridDhtPartitionTopology ;
3535import org .apache .ignite .internal .processors .cache .distributed .dht .topology .GridDhtPartitionsStateValidator ;
3636import org .jetbrains .annotations .Nullable ;
37- import org .mockito .Matchers ;
3837import org .mockito .Mockito ;
3938import org .openjdk .jmh .annotations .Benchmark ;
4039import org .openjdk .jmh .annotations .Scope ;
4140import org .openjdk .jmh .annotations .Setup ;
4241import org .openjdk .jmh .annotations .State ;
4342
43+ import static org .mockito .ArgumentMatchers .any ;
44+ import static org .mockito .ArgumentMatchers .anyInt ;
4445import static org .openjdk .jmh .annotations .Scope .Thread ;
4546
4647/** */
@@ -110,7 +111,7 @@ public void setup() {
110111 Mockito .when (cctxMock .localNodeId ()).thenReturn (localNodeId );
111112
112113 topologyMock = Mockito .mock (GridDhtPartitionTopology .class );
113- Mockito .when (topologyMock .partitionState (Matchers . any (), Matchers . anyInt ())).thenReturn (GridDhtPartitionState .OWNING );
114+ Mockito .when (topologyMock .partitionState (any (), anyInt ())).thenReturn (GridDhtPartitionState .OWNING );
114115 Mockito .when (topologyMock .groupId ()).thenReturn (0 );
115116
116117 Mockito .when (topologyMock .partitions ()).thenReturn (PARTS );
Original file line number Diff line number Diff line change 8080 <dependency >
8181 <groupId >com.thoughtworks.xstream</groupId >
8282 <artifactId >xstream</artifactId >
83- <version >1.4.8 </version >
83+ <version >${xstream.version} </version >
8484 <scope >test</scope >
8585 </dependency >
8686
Original file line number Diff line number Diff line change 107107 <dependency >
108108 <groupId >com.thoughtworks.xstream</groupId >
109109 <artifactId >xstream</artifactId >
110- <version >1.4.8 </version >
110+ <version >${xstream.version} </version >
111111 <scope >test</scope >
112112 </dependency >
113113
Original file line number Diff line number Diff line change 100100 <dependency >
101101 <groupId >com.thoughtworks.xstream</groupId >
102102 <artifactId >xstream</artifactId >
103- <version >1.4.8 </version >
103+ <version >${xstream.version} </version >
104104 <scope >test</scope >
105105 </dependency >
106106
Original file line number Diff line number Diff line change 110110 <dependency >
111111 <groupId >com.thoughtworks.xstream</groupId >
112112 <artifactId >xstream</artifactId >
113- <version >1.4.8 </version >
113+ <version >${xstream.version} </version >
114114 <scope >test</scope >
115115 </dependency >
116116
Original file line number Diff line number Diff line change 3434import org .jetbrains .annotations .Nullable ;
3535import org .junit .Assert ;
3636import org .junit .Test ;
37- import org .mockito .Matchers ;
3837import org .mockito .Mockito ;
3938
39+ import static org .mockito .ArgumentMatchers .any ;
40+ import static org .mockito .ArgumentMatchers .anyInt ;
41+
4042/**
4143 * Test correct behaviour of {@link GridDhtPartitionsStateValidator} class.
4244 */
@@ -57,7 +59,7 @@ public class GridCachePartitionsStateValidatorSelfTest extends GridCommonAbstrac
5759 Mockito .when (cctxMock .localNodeId ()).thenReturn (localNodeId );
5860
5961 topologyMock = Mockito .mock (GridDhtPartitionTopology .class );
60- Mockito .when (topologyMock .partitionState (Matchers . any (), Matchers . anyInt ())).thenReturn (GridDhtPartitionState .OWNING );
62+ Mockito .when (topologyMock .partitionState (any (), anyInt ())).thenReturn (GridDhtPartitionState .OWNING );
6163 Mockito .when (topologyMock .groupId ()).thenReturn (0 );
6264 Mockito .when (topologyMock .partitions ()).thenReturn (3 );
6365
Original file line number Diff line number Diff line change 104104 <dependency >
105105 <groupId >com.thoughtworks.xstream</groupId >
106106 <artifactId >xstream</artifactId >
107- <version >1.4.8 </version >
107+ <version >${xstream.version} </version >
108108 <scope >test</scope >
109109 </dependency >
110110
Original file line number Diff line number Diff line change 8686 <dependency >
8787 <groupId >com.thoughtworks.xstream</groupId >
8888 <artifactId >xstream</artifactId >
89- <version >1.4.8 </version >
89+ <version >${xstream.version} </version >
9090 <scope >test</scope >
9191 </dependency >
9292
Original file line number Diff line number Diff line change 7171 <dependency >
7272 <groupId >com.thoughtworks.xstream</groupId >
7373 <artifactId >xstream</artifactId >
74- <version >1.4.8 </version >
74+ <version >${xstream.version} </version >
7575 <scope >test</scope >
7676 </dependency >
7777
Original file line number Diff line number Diff line change 133133 <dependency >
134134 <groupId >com.thoughtworks.xstream</groupId >
135135 <artifactId >xstream</artifactId >
136- <version >1.4.8 </version >
136+ <version >${xstream.version} </version >
137137 <scope >test</scope >
138138 </dependency >
139139
You can’t perform that action at this time.
0 commit comments