Commit 0a54612 1 parent 2018fee commit 0a54612 Copy full SHA for 0a54612
File tree 1 file changed +7
-3
lines changed
src/test/java/org/opensearch/knn/indices
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
package org .opensearch .knn .indices ;
13
13
14
- import org .junit .*;
14
+ import org .junit .AfterClass ;
15
+ import org .junit .BeforeClass ;
15
16
import org .mockito .MockedStatic ;
16
17
import org .opensearch .ExceptionsHelper ;
17
18
import org .opensearch .ResourceAlreadyExistsException ;
59
60
import java .util .concurrent .TimeUnit ;
60
61
61
62
import static org .mockito .ArgumentMatchers .any ;
62
- import static org .mockito .Mockito .*;
63
+ import static org .mockito .Mockito .doNothing ;
64
+ import static org .mockito .Mockito .mock ;
65
+ import static org .mockito .Mockito .mockStatic ;
63
66
import static org .opensearch .cluster .metadata .Metadata .builder ;
64
67
import static org .opensearch .knn .common .KNNConstants .DIMENSION ;
65
68
import static org .opensearch .knn .common .KNNConstants .KNN_ENGINE ;
@@ -84,7 +87,8 @@ public static void setup() {
84
87
trainingJobClusterStateListenerMockedStatic = mockStatic (TrainingJobClusterStateListener .class );
85
88
final TrainingJobClusterStateListener trainingJobClusterStateListener = mock (TrainingJobClusterStateListener .class );
86
89
doNothing ().when (trainingJobClusterStateListener ).clusterChanged (any (ClusterChangedEvent .class ));
87
- trainingJobClusterStateListenerMockedStatic .when (TrainingJobClusterStateListener ::getInstance ).thenReturn (trainingJobClusterStateListener );
90
+ trainingJobClusterStateListenerMockedStatic .when (TrainingJobClusterStateListener ::getInstance )
91
+ .thenReturn (trainingJobClusterStateListener );
88
92
}
89
93
90
94
@ AfterClass
You can’t perform that action at this time.
0 commit comments