Skip to content

Commit 56c4f54

Browse files
committed
build(gradle): bump springboot and replace deprecated annotaion
1 parent 5fd90e6 commit 56c4f54

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/.idea/
33
/build/
44
/reports/
5+
/bin/
56
/concourse-ci/secrets/vars.yml
67
.dccache
7-
.vscode
8+
.vscode

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
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'

src/test/java/com/uk/companieshouse/controller/CompaniesHouseControllerTestI.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
import org.junit.jupiter.api.DisplayName;
55
import org.junit.jupiter.api.Test;
66
import org.springframework.beans.factory.annotation.Autowired;
7-
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
87
import 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;
109
import org.springframework.test.web.servlet.MockMvc;
1110

1211
import static com.uk.companieshouse.utils.TestHelper.TESTCRN;
@@ -21,7 +20,7 @@
2120
@WebMvcTest(CompaniesHouseController.class)
2221
class 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+
}

0 commit comments

Comments
 (0)