File tree 1 file changed +12
-1
lines changed
src/main/java/com/google/testing/junit/testparameterinjector
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,18 @@ private static ImmutableList<TestParametersValues> toParameterValuesList(
290
290
parametersList .stream ().allMatch (Parameter ::isNamePresent ),
291
291
""
292
292
+ "Parameter name is not present for method or constructor: %s. Please ensure that"
293
- + " this test was built with the -parameters compiler option" ,
293
+ + " this test was built with the -parameters compiler option.\n "
294
+ + "\n "
295
+ + "In Maven, you do this by adding <parameters>true</parameters> to the"
296
+ + " maven-compiler-plugin's configuration. For example:\n "
297
+ + "\n "
298
+ + "<plugin>\n "
299
+ + " <artifactId>maven-compiler-plugin</artifactId>\n "
300
+ + " <version>3.8.1</version>\n "
301
+ + " <configuration>\n "
302
+ + " <parameters>true</parameters>\n "
303
+ + " </configuration>\n "
304
+ + "</plugin>" ,
294
305
methodOrConstructor );
295
306
if (valueIsSet ) {
296
307
return stream (annotation .value ())
You can’t perform that action at this time.
0 commit comments