Skip to content

Commit 7695d1b

Browse files
Merge branch 'spring-cloud:main' into fix-url-validation
2 parents ba824fa + abdf9de commit 7695d1b

File tree

10 files changed

+389
-321
lines changed

10 files changed

+389
-321
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</scm>
2626
<properties>
2727
<main.basedir>${basedir}</main.basedir>
28-
<jackson.version>2.18.3</jackson.version>
28+
<jackson.version>2.19.0</jackson.version>
2929
<spring-cloud-commons.version>4.3.0-SNAPSHOT</spring-cloud-commons.version>
3030

3131
<!-- Plugin versions -->

spring-cloud-openfeign-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
<dependency>
175175
<groupId>com.google.protobuf</groupId>
176176
<artifactId>protobuf-java</artifactId>
177-
<version>3.25.5</version>
177+
<version>3.25.7</version>
178178
<scope>test</scope>
179179
</dependency>
180180
<dependency>
@@ -191,7 +191,7 @@
191191
<dependency>
192192
<groupId>commons-io</groupId>
193193
<artifactId>commons-io</artifactId>
194-
<version>2.18.0</version>
194+
<version>2.19.0</version>
195195
<scope>test</scope>
196196
</dependency>
197197
<dependency>

spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/FeignBuilderCustomizerTests.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2022 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,6 @@
2222
import feign.Client;
2323
import feign.Feign;
2424
import feign.Logger;
25-
import org.junit.jupiter.api.Assertions;
2625
import org.junit.jupiter.api.Test;
2726
import org.junit.jupiter.params.ParameterizedTest;
2827
import org.junit.jupiter.params.provider.MethodSource;
@@ -65,7 +64,7 @@ void testBuilderCustomizer() {
6564
FeignClientFactoryBean clientFactoryBean = context.getBean(FeignClientFactoryBean.class);
6665
clientFactoryBean.getTarget();
6766

68-
Assertions.assertNotNull(feignBuilderCaptor.getValue());
67+
assertThat(feignBuilderCaptor.getValue()).isNotNull();
6968
Feign.Builder builder = feignBuilderCaptor.getValue();
7069
assertFeignBuilderField(builder, "logLevel", Logger.Level.HEADERS);
7170
assertFeignBuilderField(builder, "dismiss404", true);
@@ -92,7 +91,7 @@ void testBuildCustomizerOrdered() {
9291
FeignClientFactoryBean clientFactoryBean = context.getBean(FeignClientFactoryBean.class);
9392
clientFactoryBean.getTarget();
9493

95-
Assertions.assertNotNull(feignBuilderCaptor.getValue());
94+
assertThat(feignBuilderCaptor.getValue()).isNotNull();
9695
Feign.Builder builder = feignBuilderCaptor.getValue();
9796
assertFeignBuilderField(builder, "logLevel", Logger.Level.FULL);
9897
assertFeignBuilderField(builder, "dismiss404", true);
@@ -113,7 +112,7 @@ void testBuildCustomizerOrderedWithAdditional() {
113112
clientFactoryBean.addCustomizer(Feign.Builder::doNotCloseAfterDecode);
114113
clientFactoryBean.getTarget();
115114

116-
Assertions.assertNotNull(feignBuilderCaptor.getValue());
115+
assertThat(feignBuilderCaptor.getValue()).isNotNull();
117116
Feign.Builder builder = feignBuilderCaptor.getValue();
118117
assertFeignBuilderField(builder, "logLevel", Logger.Level.BASIC);
119118
assertFeignBuilderField(builder, "dismiss404", true);
@@ -134,7 +133,7 @@ void testBuildCustomizerWithCustomHttpClient(Class configClass) {
134133
clientFactoryBean.addCustomizer(builder -> builder.client(customClientMock));
135134
clientFactoryBean.getTarget();
136135

137-
Assertions.assertNotNull(feignBuilderCaptor.getValue());
136+
assertThat(feignBuilderCaptor.getValue()).isNotNull();
138137
Feign.Builder builder = feignBuilderCaptor.getValue();
139138
assertFeignBuilderField(builder, "client", customClientMock);
140139

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2022 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,40 +15,12 @@
1515
*/
1616

1717
// Generated by the protocol buffer compiler. DO NOT EDIT!
18-
// source: protobuf_test.proto
18+
// source: request.proto
1919

2020
package org.springframework.cloud.openfeign.encoding.proto;
2121

2222
public final class ProtobufTest {
2323

24-
static final com.google.protobuf.Descriptors.Descriptor internal_static_Request_descriptor;
25-
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Request_fieldAccessorTable;
26-
27-
private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
28-
29-
static {
30-
String[] descriptorData = { """
31-
32-
\023protobuf_test.proto""
33-
\007Request\022
34-
35-
\002id\030\001 \001(\005\022\013
36-
\003msg\030\002 \001(\tB\024
37-
\020feign.httpclientP\001b\006proto3""" };
38-
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
39-
public com.google.protobuf.ExtensionRegistry assignDescriptors(
40-
com.google.protobuf.Descriptors.FileDescriptor root) {
41-
descriptor = root;
42-
return null;
43-
}
44-
};
45-
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData,
46-
new com.google.protobuf.Descriptors.FileDescriptor[] {}, assigner);
47-
internal_static_Request_descriptor = getDescriptor().getMessageTypes().get(0);
48-
internal_static_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
49-
internal_static_Request_descriptor, new String[] { "Id", "Msg", });
50-
}
51-
5224
private ProtobufTest() {
5325
}
5426

@@ -59,10 +31,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
5931
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
6032
}
6133

34+
static final com.google.protobuf.Descriptors.Descriptor internal_static_org_springframework_cloud_openfeign_encoding_proto_Request_descriptor;
35+
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_org_springframework_cloud_openfeign_encoding_proto_Request_fieldAccessorTable;
36+
6237
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
6338
return descriptor;
6439
}
6540

41+
private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
42+
43+
static {
44+
String[] descriptorData = {
45+
"\n\rrequest.proto\0222org.springframework.clo" + "ud.openfeign.encoding.proto\"\"\n\007Request\022\n"
46+
+ "\n\002id\030\001 \001(\005\022\013\n\003msg\030\002 \001(\tBD\n2org.springfra"
47+
+ "mework.cloud.openfeign.encoding.protoB\014P" + "rotobufTestP\001b\006proto3" };
48+
descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData,
49+
new com.google.protobuf.Descriptors.FileDescriptor[] {});
50+
internal_static_org_springframework_cloud_openfeign_encoding_proto_Request_descriptor = getDescriptor()
51+
.getMessageTypes()
52+
.get(0);
53+
internal_static_org_springframework_cloud_openfeign_encoding_proto_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
54+
internal_static_org_springframework_cloud_openfeign_encoding_proto_Request_descriptor,
55+
new String[] { "Id", "Msg", });
56+
}
57+
6658
// @@protoc_insertion_point(outer_class_scope)
6759

6860
}

0 commit comments

Comments
 (0)