File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
main/java/org/gridsuite/filter/server/error
test/java/org/gridsuite/filter/server Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 4242 </developers >
4343
4444 <properties >
45- <gridsuite-dependencies .version>43.1 .0</gridsuite-dependencies .version>
45+ <gridsuite-dependencies .version>43.2 .0</gridsuite-dependencies .version>
4646 <!-- TODO gridsuite-filter.version remove when upgrading gridsuite dependencies -->
4747 <gridsuite-filter .version>1.12.0</gridsuite-filter .version>
4848 <string-template .version>4.3.1</string-template .version>
Original file line number Diff line number Diff line change 77package org .gridsuite .filter .server .error ;
88
99import com .powsybl .ws .commons .error .AbstractBusinessException ;
10- import org . jetbrains . annotations .NotNull ;
10+ import jakarta . validation . constraints .NotNull ;
1111
1212import java .util .Objects ;
1313
Original file line number Diff line number Diff line change 88
99import com .powsybl .ws .commons .error .AbstractBaseRestExceptionHandler ;
1010import com .powsybl .ws .commons .error .ServerNameProvider ;
11- import org . jetbrains . annotations .NotNull ;
11+ import jakarta . validation . constraints .NotNull ;
1212import org .springframework .http .HttpStatus ;
1313import org .springframework .web .bind .annotation .ControllerAdvice ;
1414
Original file line number Diff line number Diff line change 5252import org .springframework .beans .factory .annotation .Autowired ;
5353import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
5454import org .springframework .boot .test .context .SpringBootTest ;
55- import org .springframework .boot .test .mock .mockito .MockBean ;
56- import org .springframework .boot .test .mock .mockito .SpyBean ;
5755import org .springframework .cloud .stream .binder .test .OutputDestination ;
5856import org .springframework .cloud .stream .binder .test .TestChannelBinderConfiguration ;
5957import org .springframework .messaging .Message ;
6058import org .springframework .test .context .ContextConfiguration ;
59+ import org .springframework .test .context .bean .override .mockito .MockitoBean ;
60+ import org .springframework .test .context .bean .override .mockito .MockitoSpyBean ;
6161import org .springframework .test .context .junit4 .SpringRunner ;
6262import org .springframework .test .web .servlet .MockMvc ;
6363import org .springframework .util .CollectionUtils ;
@@ -107,10 +107,10 @@ public class FilterEntityControllerTest {
107107 @ Autowired
108108 ObjectMapper objectMapper = new ObjectMapper ();
109109
110- @ MockBean
110+ @ MockitoBean
111111 private NetworkStoreService networkStoreService ;
112112
113- @ SpyBean
113+ @ MockitoSpyBean
114114 private DirectoryService directoryService ;
115115
116116 public static final SortedSet <String > COUNTRIES1 = new TreeSet <>(Collections .singleton ("France" ));
Original file line number Diff line number Diff line change 2929import org .springframework .beans .factory .annotation .Autowired ;
3030import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
3131import org .springframework .boot .test .context .SpringBootTest ;
32- import org .springframework .boot .test .mock .mockito .MockBean ;
3332import org .springframework .cloud .stream .binder .test .TestChannelBinderConfiguration ;
3433import org .springframework .test .context .ContextConfiguration ;
34+ import org .springframework .test .context .bean .override .mockito .MockitoBean ;
3535import org .springframework .test .context .junit4 .SpringRunner ;
3636import org .springframework .test .web .servlet .MockMvc ;
3737import org .springframework .util .LinkedMultiValueMap ;
@@ -66,7 +66,7 @@ public class GlobalFilterControllerTest {
6666 @ Autowired
6767 ObjectMapper objectMapper = new ObjectMapper ();
6868
69- @ MockBean
69+ @ MockitoBean
7070 private NetworkStoreService networkStoreService ;
7171
7272 private static final UUID NETWORK_UUID = UUID .fromString ("7928181c-7977-4592-ba19-88027e4254e4" );
You can’t perform that action at this time.
0 commit comments