@@ -132,7 +132,6 @@ void rxJavaService() {
132
132
133
133
@ Test
134
134
void blockingService () {
135
-
136
135
BlockingService service = this .proxyFactory .createClient (BlockingService .class );
137
136
138
137
service .execute ();
@@ -144,7 +143,7 @@ void blockingService() {
144
143
assertThat (body ).isEqualTo ("requestToBody" );
145
144
146
145
Optional <String > optional = service .getBodyOptional ();
147
- assertThat (optional ).isEqualTo ( Optional . of ( "requestToBody" ) );
146
+ assertThat (optional ).contains ( "requestToBody" );
148
147
149
148
ResponseEntity <String > entity = service .getEntity ();
150
149
assertThat (entity .getBody ()).isEqualTo ("requestToEntity" );
@@ -155,7 +154,6 @@ void blockingService() {
155
154
156
155
@ Test
157
156
void methodAnnotatedService () {
158
-
159
157
MethodLevelAnnotatedService service = this .proxyFactory .createClient (MethodLevelAnnotatedService .class );
160
158
161
159
service .performGet ();
@@ -177,7 +175,6 @@ void methodAnnotatedService() {
177
175
178
176
@ Test
179
177
void typeAndMethodAnnotatedService () throws Exception {
180
-
181
178
HttpServiceProxyFactory proxyFactory = new HttpServiceProxyFactory (this .client );
182
179
proxyFactory .setEmbeddedValueResolver (value -> (value .equals ("${baseUrl}" ) ? "/base" : value ));
183
180
proxyFactory .afterPropertiesSet ();
@@ -202,7 +199,7 @@ void typeAndMethodAnnotatedService() throws Exception {
202
199
}
203
200
204
201
private void verifyClientInvocation (String methodName , @ Nullable ParameterizedTypeReference <?> expectedBodyType ) {
205
- assertThat (( this .client .getInvokedMethodName () )).isEqualTo (methodName );
202
+ assertThat (this .client .getInvokedMethodName ()).isEqualTo (methodName );
206
203
assertThat (this .client .getBodyType ()).isEqualTo (expectedBodyType );
207
204
}
208
205
0 commit comments