@@ -186,24 +186,27 @@ void throwsExceptionOnInvalidStringForPrimitiveTypes() {
186
186
void throwsExceptionWhenImplicitConverstionIsUnsupported () {
187
187
assertThatExceptionOfType (ArgumentConversionException .class ) //
188
188
.isThrownBy (() -> convert ("foo" , Enigma .class )) //
189
- .withMessage ("No built-in converter for source type java.lang.String and target type %s" ,
189
+ .withMessage ("No built-in converter for source type java.lang.String and target type %s" , // FIXME enhance DefaultConversionService::canConvert
190
190
Enigma .class .getName ());
191
191
192
192
assertThatExceptionOfType (ArgumentConversionException .class ) //
193
193
.isThrownBy (() -> convert (new Enigma (), int [].class )) //
194
- .withMessage ("No built-in converter for source type %s and target type int[]" , Enigma .class .getName ());
194
+ .withMessage ("No registered or built-in converter for source type %s and target type int[]" ,
195
+ Enigma .class .getName ());
195
196
196
197
assertThatExceptionOfType (ArgumentConversionException .class ) //
197
198
.isThrownBy (() -> convert (new long [] {}, int [].class )) //
198
- .withMessage ("No built-in converter for source type long[] and target type int[]" );
199
+ .withMessage ("No registered or built-in converter for source type long[] and target type int[]" );
199
200
200
201
assertThatExceptionOfType (ArgumentConversionException .class ) //
201
202
.isThrownBy (() -> convert (new String [] {}, boolean .class )) //
202
- .withMessage ("No built-in converter for source type java.lang.String[] and target type boolean" );
203
+ .withMessage (
204
+ "No registered or built-in converter for source type java.lang.String[] and target type boolean" );
203
205
204
206
assertThatExceptionOfType (ArgumentConversionException .class ) //
205
207
.isThrownBy (() -> convert (Class .class , int [].class )) //
206
- .withMessage ("No built-in converter for source type java.lang.Class and target type int[]" );
208
+ .withMessage (
209
+ "No registered or built-in converter for source type java.lang.Class and target type int[]" );
207
210
}
208
211
209
212
/**
0 commit comments