File tree Expand file tree Collapse file tree
src/test/java/my/bookshop/it
main/java/my/bookshop/health Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 <artifactId >spring-boot-starter-test</artifactId >
3636 <scope >test</scope >
3737 </dependency >
38+ <dependency >
39+ <groupId >org.springframework.boot</groupId >
40+ <artifactId >spring-boot-starter-webmvc-test</artifactId >
41+ <scope >test</scope >
42+ </dependency >
3843
3944 <dependency >
40- <groupId >org.springframework.security </groupId >
41- <artifactId >spring-security-test</artifactId >
45+ <groupId >org.springframework.boot </groupId >
46+ <artifactId >spring-boot-starter- security-test</artifactId >
4247 <scope >test</scope >
4348 </dependency >
4449 </dependencies >
Original file line number Diff line number Diff line change 77
88import org .junit .jupiter .api .Test ;
99import org .springframework .beans .factory .annotation .Autowired ;
10- import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
1110import org .springframework .boot .test .context .SpringBootTest ;
11+ import org .springframework .boot .webmvc .test .autoconfigure .AutoConfigureMockMvc ;
1212import org .springframework .security .test .context .support .WithMockUser ;
1313import org .springframework .test .context .ActiveProfiles ;
1414import org .springframework .test .web .servlet .MockMvc ;
Original file line number Diff line number Diff line change 22 "dependencies" : {
33 "@cap-js/hana" : " ^2.8.0" ,
44 "@sap/cds" : " ^9.9.1" ,
5- "@sap/cds-mtxs" : " ^3" ,
5+ "@sap/cds-mtxs" : " ^3.9.4 " ,
66 "@sap/xssec" : " ^4.13.0" ,
77 "express" : " ^4.22.2"
88 },
Original file line number Diff line number Diff line change 33 "version" : " 1.0.0" ,
44 "description" : " Generated by cds-services-archetype" ,
55 "devDependencies" : {
6+ "@sap/cds-compiler" : " ^6.9.3" ,
67 "@sap/cds-dk" : " 9.9.2" ,
7- "@sap/cds-mtxs" : " ^3" ,
8- "@sap/cds-compiler" : " ^6.9.3"
8+ "@sap/cds-mtxs" : " ^3.9.4"
99 },
1010 "workspaces" : [
1111 " mtx/sidecar"
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >org.springframework.boot</groupId >
77 <artifactId >spring-boot-starter-parent</artifactId >
8- <version >3.5.15 </version >
8+ <version >4.1.0 </version >
99 <relativePath />
1010 <!-- lookup parent from repository -->
1111 </parent >
2828
2929 <!-- DEPENDENCIES VERSION -->
3030 <jdk .version>25</jdk .version>
31- <cds .services.version>4.9 .0</cds .services.version>
31+ <cds .services.version>5.0 .0</cds .services.version>
3232 <cloud .sdk.version>5.31.0</cloud .sdk.version>
33- <xsuaa .version>3.7.3 </xsuaa .version>
33+ <xsuaa .version>4.0.7 </xsuaa .version>
3434 <cf-java-logging-support .version>4.2.0</cf-java-logging-support .version>
3535 <cds-feature-attachments .version>1.5.0</cds-feature-attachments .version>
3636 </properties >
156156 <configuration >
157157 <rules >
158158 <requireMavenVersion >
159- <version >3.6.3 </version >
159+ <version >3.9.14 </version >
160160 </requireMavenVersion >
161161 <requireJavaVersion >
162162 <version >${jdk.version} </version >
Original file line number Diff line number Diff line change 110110 <artifactId >spring-boot-starter-security</artifactId >
111111 </dependency >
112112
113+ <dependency >
114+ <groupId >org.springframework.boot</groupId >
115+ <artifactId >spring-boot-starter-security-oauth2-resource-server</artifactId >
116+ </dependency >
117+
113118 <dependency >
114119 <groupId >org.springframework.boot</groupId >
115120 <artifactId >spring-boot-starter-actuator</artifactId >
122127 </dependency >
123128
124129 <dependency >
125- <groupId >org.springframework.security</groupId >
126- <artifactId >spring-security-test</artifactId >
130+ <groupId >org.springframework.boot</groupId >
131+ <artifactId >spring-boot-starter-security-test</artifactId >
132+ <scope >test</scope >
133+ </dependency >
134+
135+ <dependency >
136+ <groupId >org.springframework.boot</groupId >
137+ <artifactId >spring-boot-starter-webclient</artifactId >
138+ <scope >test</scope >
139+ </dependency >
140+
141+ <dependency >
142+ <groupId >org.springframework.boot</groupId >
143+ <artifactId >spring-boot-webtestclient</artifactId >
127144 <scope >test</scope >
128145 </dependency >
129146
130147 <dependency >
131148 <groupId >org.springframework.boot</groupId >
132- <artifactId >spring-boot-starter-webflux </artifactId >
149+ <artifactId >spring-boot-starter-webmvc-test </artifactId >
133150 <scope >test</scope >
134151 </dependency >
135152
Original file line number Diff line number Diff line change 11package my .bookshop .health ;
22
3- import org .springframework .boot .actuate .autoconfigure .health .ConditionalOnEnabledHealthIndicator ;
4- import org .springframework .boot .actuate . health .Health ;
5- import org .springframework .boot .actuate . health .HealthIndicator ;
3+ import org .springframework .boot .health .autoconfigure .contributor .ConditionalOnEnabledHealthIndicator ;
4+ import org .springframework .boot .health . contributor .Health ;
5+ import org .springframework .boot .health . contributor .HealthIndicator ;
66import org .springframework .stereotype .Component ;
77
88/** Custom health indicator implementation. */
Original file line number Diff line number Diff line change 33import org .junit .jupiter .api .Test ;
44import org .springframework .boot .test .context .SpringBootTest ;
55import org .springframework .boot .test .context .SpringBootTest .WebEnvironment ;
6+ import org .springframework .boot .webtestclient .autoconfigure .AutoConfigureWebTestClient ;
67import org .springframework .test .context .ActiveProfiles ;
78
89/**
1213 */
1314@ ActiveProfiles ("default" )
1415@ SpringBootTest (webEnvironment = WebEnvironment .RANDOM_PORT )
16+ @ AutoConfigureWebTestClient
1517class AdminServiceAddress_default_ITest extends AdminServiceAddressITestBase {
1618
1719 @ Test
Original file line number Diff line number Diff line change 33import org .junit .jupiter .api .Test ;
44import org .springframework .boot .test .context .SpringBootTest ;
55import org .springframework .boot .test .context .SpringBootTest .WebEnvironment ;
6+ import org .springframework .boot .webtestclient .autoconfigure .AutoConfigureWebTestClient ;
67import org .springframework .test .context .ActiveProfiles ;
78
89/**
1617 webEnvironment = WebEnvironment .RANDOM_PORT ,
1718 properties =
1819 "cds.remote.services.'[API_BUSINESS_PARTNER]'.destination.name=myself-AdminServiceAddressITest" )
20+ @ AutoConfigureWebTestClient
1921class AdminServiceAddress_mocked_ITest extends AdminServiceAddressITestBase {
2022
2123 @ Test
You can’t perform that action at this time.
0 commit comments