File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/test/java/com/uk/companieshouse/controller Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22/.idea /
33/build /
44/reports /
5+ /bin /
56/concourse-ci /secrets /vars.yml
67.dccache
7- .vscode
8+ .vscode
Original file line number Diff line number Diff line change 11plugins {
22 id ' java'
3- id ' org.springframework.boot' version ' 3.4.4 '
3+ id ' org.springframework.boot' version ' 3.5.5 '
44 id ' io.spring.dependency-management' version ' 1.1.7'
55 id ' jacoco'
66 id ' info.solidsoft.pitest' version ' 1.15.0'
Original file line number Diff line number Diff line change 44import org .junit .jupiter .api .DisplayName ;
55import org .junit .jupiter .api .Test ;
66import org .springframework .beans .factory .annotation .Autowired ;
7- import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
87import org .springframework .boot .test .autoconfigure .web .servlet .WebMvcTest ;
9- import org .springframework .boot . test .mock . mockito .MockBean ;
8+ import org .springframework .test .context . bean . override . mockito .MockitoBean ;
109import org .springframework .test .web .servlet .MockMvc ;
1110
1211import static com .uk .companieshouse .utils .TestHelper .TESTCRN ;
2120@ WebMvcTest (CompaniesHouseController .class )
2221class CompaniesHouseControllerTestI {
2322
24- @ MockBean
23+ @ MockitoBean
2524 private CompaniesHouseService companiesHouseService ;
2625
2726 @ Autowired
@@ -39,4 +38,4 @@ void getCompaniesHouseResponse_whenValidCRNIsPassed_shouldReturnCHResponse() thr
3938 .andExpect (content ().string (containsString (EXPECTED_RESPONSE )));
4039 }
4140
42- }
41+ }
You can’t perform that action at this time.
0 commit comments