File tree Expand file tree Collapse file tree 13 files changed +51
-27
lines changed
spring-credhub-core/src/test/java/org/springframework/credhub/core/credential
main/java/org/springframework/credhub/autoconfig
test/java/org/springframework/credhub/autoconfig Expand file tree Collapse file tree 13 files changed +51
-27
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ plugins {
2323description = " Spring CredHub"
2424
2525ext {
26- springBootVersion = " 3.5.8 "
26+ springBootVersion = " 4.0.0 "
2727 javadocLinks = [
2828 " https://docs.oracle.com/en/java/javase/17/docs/api/" ,
2929 " https://docs.spring.io/spring-framework/docs/current/javadoc-api/"
Original file line number Diff line number Diff line change 2424import org .junit .jupiter .params .provider .Arguments ;
2525import org .junit .jupiter .params .provider .ArgumentsProvider ;
2626import org .junit .jupiter .params .provider .ArgumentsSource ;
27+ import org .junit .jupiter .params .support .ParameterDeclarations ;
2728
2829import org .springframework .credhub .core .CredHubException ;
2930import org .springframework .credhub .support .CredentialSummary ;
@@ -93,7 +94,8 @@ private void assertResponseContainsExpectedCredentials(ResponseEntity<Credential
9394 static class ResponseArgumentsProvider implements ArgumentsProvider {
9495
9596 @ Override
96- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
97+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
98+ ExtensionContext context ) {
9799 return Stream .of (
98100 Arguments .of (ResponseEntity .ok ().body (new CredentialSummaryData (new CredentialSummary (NAME )))),
99101 Arguments .of (ResponseEntity .status (HttpStatus .UNAUTHORIZED ).body (new CredentialSummaryData ())));
Original file line number Diff line number Diff line change 2323import org .junit .jupiter .params .provider .Arguments ;
2424import org .junit .jupiter .params .provider .ArgumentsProvider ;
2525import org .junit .jupiter .params .provider .ArgumentsSource ;
26+ import org .junit .jupiter .params .support .ParameterDeclarations ;
2627
2728import org .springframework .credhub .support .CredentialDetails ;
2829import org .springframework .credhub .support .CredentialDetailsData ;
@@ -106,7 +107,8 @@ public void getByNameWithVersions(ResponseEntity<CredentialDetailsData<Certifica
106107 static class DetailResponseArgumentsProvider implements ArgumentsProvider {
107108
108109 @ Override
109- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
110+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
111+ ExtensionContext context ) {
110112 return buildDetailArguments (CredentialType .CERTIFICATE , CREDENTIAL );
111113 }
112114
@@ -115,7 +117,8 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext context) {
115117 static class DataResponseArgumentsProvider implements ArgumentsProvider {
116118
117119 @ Override
118- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
120+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
121+ ExtensionContext context ) {
119122 return buildDataArguments (CredentialType .CERTIFICATE , CREDENTIAL );
120123 }
121124
Original file line number Diff line number Diff line change 2323import org .junit .jupiter .params .provider .Arguments ;
2424import org .junit .jupiter .params .provider .ArgumentsProvider ;
2525import org .junit .jupiter .params .provider .ArgumentsSource ;
26+ import org .junit .jupiter .params .support .ParameterDeclarations ;
2627
2728import org .springframework .credhub .support .CredentialDetails ;
2829import org .springframework .credhub .support .CredentialDetailsData ;
@@ -84,7 +85,8 @@ public void getByNameWithVersions(ResponseEntity<CredentialDetailsData<JsonCrede
8485 static class DetailResponseArgumentsProvider implements ArgumentsProvider {
8586
8687 @ Override
87- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
88+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
89+ ExtensionContext context ) {
8890 return buildDetailArguments (CredentialType .JSON , CREDENTIAL );
8991 }
9092
@@ -93,7 +95,8 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext context) {
9395 static class DataResponseArgumentsProvider implements ArgumentsProvider {
9496
9597 @ Override
96- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
98+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
99+ ExtensionContext context ) {
97100 return buildDataArguments (CredentialType .JSON , CREDENTIAL );
98101 }
99102
Original file line number Diff line number Diff line change 2323import org .junit .jupiter .params .provider .Arguments ;
2424import org .junit .jupiter .params .provider .ArgumentsProvider ;
2525import org .junit .jupiter .params .provider .ArgumentsSource ;
26+ import org .junit .jupiter .params .support .ParameterDeclarations ;
2627
2728import org .springframework .credhub .support .CredentialDetails ;
2829import org .springframework .credhub .support .CredentialDetailsData ;
@@ -102,7 +103,8 @@ public void getByNameWithVersions(ResponseEntity<CredentialDetailsData<PasswordC
102103 static class DetailResponseArgumentsProvider implements ArgumentsProvider {
103104
104105 @ Override
105- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
106+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
107+ ExtensionContext context ) {
106108 return buildDetailArguments (CredentialType .PASSWORD , CREDENTIAL );
107109 }
108110
@@ -111,7 +113,8 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext context) {
111113 static class DataResponseArgumentsProvider implements ArgumentsProvider {
112114
113115 @ Override
114- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
116+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
117+ ExtensionContext context ) {
115118 return buildDataArguments (CredentialType .PASSWORD , CREDENTIAL );
116119 }
117120
Original file line number Diff line number Diff line change 2323import org .junit .jupiter .params .provider .Arguments ;
2424import org .junit .jupiter .params .provider .ArgumentsProvider ;
2525import org .junit .jupiter .params .provider .ArgumentsSource ;
26+ import org .junit .jupiter .params .support .ParameterDeclarations ;
2627
2728import org .springframework .credhub .support .CredentialDetails ;
2829import org .springframework .credhub .support .CredentialDetailsData ;
@@ -103,7 +104,8 @@ public void getByNameWithVersions(ResponseEntity<CredentialDetailsData<RsaCreden
103104 static class DetailResponseArgumentsProvider implements ArgumentsProvider {
104105
105106 @ Override
106- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
107+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
108+ ExtensionContext context ) {
107109 return buildDetailArguments (CredentialType .RSA , CREDENTIAL );
108110 }
109111
@@ -112,7 +114,8 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext context) {
112114 static class DataResponseArgumentsProvider implements ArgumentsProvider {
113115
114116 @ Override
115- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
117+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
118+ ExtensionContext context ) {
116119 return buildDataArguments (CredentialType .RSA , CREDENTIAL );
117120 }
118121
Original file line number Diff line number Diff line change 2323import org .junit .jupiter .params .provider .Arguments ;
2424import org .junit .jupiter .params .provider .ArgumentsProvider ;
2525import org .junit .jupiter .params .provider .ArgumentsSource ;
26+ import org .junit .jupiter .params .support .ParameterDeclarations ;
2627
2728import org .springframework .credhub .support .CredentialDetails ;
2829import org .springframework .credhub .support .CredentialDetailsData ;
@@ -103,7 +104,8 @@ public void getByNameWithVersions(ResponseEntity<CredentialDetailsData<SshCreden
103104 static class DetailResponseArgumentsProvider implements ArgumentsProvider {
104105
105106 @ Override
106- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
107+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
108+ ExtensionContext context ) {
107109 return buildDetailArguments (CredentialType .CERTIFICATE , CREDENTIAL );
108110 }
109111
@@ -112,7 +114,8 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext context) {
112114 static class DataResponseArgumentsProvider implements ArgumentsProvider {
113115
114116 @ Override
115- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
117+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
118+ ExtensionContext context ) {
116119 return buildDataArguments (CredentialType .CERTIFICATE , CREDENTIAL );
117120 }
118121
Original file line number Diff line number Diff line change 2323import org .junit .jupiter .params .provider .Arguments ;
2424import org .junit .jupiter .params .provider .ArgumentsProvider ;
2525import org .junit .jupiter .params .provider .ArgumentsSource ;
26+ import org .junit .jupiter .params .support .ParameterDeclarations ;
2627
2728import org .springframework .credhub .support .CredentialDetails ;
2829import org .springframework .credhub .support .CredentialDetailsData ;
@@ -79,7 +80,8 @@ public void getByNameWithVersions(ResponseEntity<CredentialDetailsData<UserCrede
7980 static class DetailResponseArgumentsProvider implements ArgumentsProvider {
8081
8182 @ Override
82- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
83+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
84+ ExtensionContext context ) {
8385 return buildDetailArguments (CredentialType .USER , CREDENTIAL );
8486 }
8587
@@ -88,7 +90,8 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext context) {
8890 static class DataResponseArgumentsProvider implements ArgumentsProvider {
8991
9092 @ Override
91- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
93+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
94+ ExtensionContext context ) {
9295 return buildDataArguments (CredentialType .USER , CREDENTIAL );
9396 }
9497
Original file line number Diff line number Diff line change 2323import org .junit .jupiter .params .provider .Arguments ;
2424import org .junit .jupiter .params .provider .ArgumentsProvider ;
2525import org .junit .jupiter .params .provider .ArgumentsSource ;
26+ import org .junit .jupiter .params .support .ParameterDeclarations ;
2627
2728import org .springframework .credhub .support .CredentialDetails ;
2829import org .springframework .credhub .support .CredentialDetailsData ;
@@ -79,7 +80,8 @@ public void getByNameWithVersions(ResponseEntity<CredentialDetailsData<ValueCred
7980 static class DetailResponseArgumentsProvider implements ArgumentsProvider {
8081
8182 @ Override
82- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
83+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
84+ ExtensionContext context ) {
8385 return buildDetailArguments (CredentialType .VALUE , CREDENTIAL );
8486 }
8587
@@ -88,7 +90,8 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext context) {
8890 static class DataResponseArgumentsProvider implements ArgumentsProvider {
8991
9092 @ Override
91- public Stream <? extends Arguments > provideArguments (ExtensionContext context ) {
93+ public Stream <? extends Arguments > provideArguments (ParameterDeclarations parameters ,
94+ ExtensionContext context ) {
9295 return buildDataArguments (CredentialType .VALUE , CREDENTIAL );
9396 }
9497
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ dependencies {
2323
2424 reactiveImplementation(" org.springframework.boot:spring-boot-starter-webflux" )
2525
26+ securityImplementation(" org.springframework.boot:spring-boot-security-oauth2-client" )
2627 securityImplementation(" org.springframework.security:spring-security-config" )
2728 securityImplementation(" org.springframework.security:spring-security-oauth2-client" )
2829
You can’t perform that action at this time.
0 commit comments