28
28
* <p>Each shared resource is represented by an instance of {@link Lock}.
29
29
*
30
30
* <p>Adding shared resources via this API has the same semantics as declaring
31
- * them declaratively via {@link ResouceLock @ResourceLock(value, mode)}, but for
31
+ * them declaratively via {@link ResourceLock @ResourceLock(value, mode)}, but for
32
32
* some use cases the programmatic approach may be more flexible and less verbose.
33
33
*
34
34
* <p>Implementations must provide a no-args constructor.
@@ -77,7 +77,7 @@ default Set<Lock> provideForClass(Class<?> testClass) {
77
77
*
78
78
* @param testClass a nested test class for which to add shared resources
79
79
* @return a set of {@link Lock}; may be empty
80
- * @see Nested
80
+ * @see org.junit.jupiter.api.Nested @ Nested
81
81
*/
82
82
default Set <Lock > provideForNestedClass (Class <?> testClass ) {
83
83
return emptySet ();
@@ -97,10 +97,11 @@ default Set<Lock> provideForNestedClass(Class<?> testClass) {
97
97
* has the same semantics as annotating a test method
98
98
* with analogous {@code @ResourceLock(value, mode)}.
99
99
*
100
- * @param testClass the test class or {@code @Nested} test class that contains
101
- * the {@code testMethod}
100
+ * @param testClass the test class or {@link org.junit.jupiter.api.Nested @Nested}
101
+ * test class that contains the {@code testMethod}
102
102
* @param testMethod a test method for which to add shared resources
103
103
* @return a set of {@link Lock}; may be empty
104
+ * @see org.junit.jupiter.api.Nested @Nested
104
105
*/
105
106
default Set <Lock > provideForMethod (Class <?> testClass , Method testMethod ) {
106
107
return emptySet ();
0 commit comments