Allow users to access factory method params info #885
Annotations
3 errors and 3 warnings
Test:
testng-core-api/src/main/java/org/testng/IParameterInfo.java#L12
Replace 3 lines 12..14 with
* <code>@factory</code> annotation. For e.g., lets say you specified the indices to the "1"
* and your factory returned 4 instances, then the instance on which this method is invoked
* would have the value as "1".
|
Test:
task ':testng-core-api:autostyleJavaCheck'#L1
Execution failed for task ':testng-core-api:autostyleJavaCheck':
See 'What went wrong' below
|
Test
Execution failed for task ':testng-core-api:autostyleJavaCheck'.
> The following files have format violations:
src/main/java/org/testng/IParameterInfo.java
@@ -9,9 +9,9 @@
/**
* @return - The actual index of instance associated with a factory method. This index has a 1:1
* correspondence with what were specified via the <code>indices</code> attribute of the
-···*·····<code>@factory</code>·annotation.·For·e.g.,·lets·say·you·specified·the␊
-···*·····indices·to·the·"1"·and·your·factory·returned·4·instances,·then·the·instance·on·which·this␊
-···*·····method·is·invoked·would·have·the·value·as·"1".␊
+···*·····<code>@factory</code>·annotation.·For·e.g.,·lets·say·you·specified·the·indices·to·the·"1"␊
+···*·····and·your·factory·returned·4·instances,·then·the·instance·on·which·this·method·is·invoked␊
+···*·····would·have·the·value·as·"1".␊
*/
int getIndex();
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Upload build reports
No files were found with the provided path: testng-core/build/reports/tests/test/**. No artifacts will be uploaded.
|
Test
Gradle Build Scan: https://gradle.com/s/cukwx46qwn3n2
|
Loading