File tree 2 files changed +19
-6
lines changed
src/main/java/org/junit/experimental/theories
2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
/**
7
7
* <p>
8
- * Annotating an array-typed field or method with @DataPoints will cause the
9
- * values in the array (or returned array) to be used as potential parameters
10
- * for theories in that class, when run with the
8
+ * Annotating an array-typed field or method with @DataPoints will cause
9
+ * the values in the array (or returned array) to be used as potential
10
+ * parameters for theories in that class, when run with the
11
11
* {@link org.junit.experimental.theories.Theories Theories} runner.
12
12
* </p>
13
13
* <p>
20
20
* {@link org.junit.experimental.theories.FromDataPoints @FromDataPoints}
21
21
* annotation.
22
22
* </p>
23
+ * <p>
24
+ * Parameters with no specified source (i.e. without @FromDataPoints or
25
+ * other {@link org.junit.experimental.theories.ParametersSuppliedBy
26
+ * @ParameterSuppliedBy} annotations) will use all DataPoints that are
27
+ * assignable to the parameter type as potential values, including named sets of
28
+ * DataPoints.
29
+ * </p>
23
30
*
24
31
* <pre>
25
32
* @DataPoints
Original file line number Diff line number Diff line change 12
12
* Annotating a parameter of a {@link org.junit.experimental.theories.Theory
13
13
* @Theory} method with <code>@FromDataPoints</code> will limit the
14
14
* datapoints considered as potential values for that parameter to just the
15
- * {@link org.junit.experimental.theories.DataPoints DataPoints} with the
16
- * given name. For example:
15
+ * {@link org.junit.experimental.theories.DataPoints DataPoints} with the given
16
+ * name. DataPoint names can be given as the value parameter of the
17
+ * @DataPoints annotation.
18
+ * </p>
19
+ * <p>
20
+ * DataPoints without names will not be considered as values for any parameters
21
+ * annotated with @FromDataPoints.
17
22
* </p>
18
23
*
19
24
* <pre>
38
43
* // This will be called with only the values in 'regexStrings' as
39
44
* // regex, only the values in 'testStrings' as value, and none
40
45
* // of the values in 'unnamed'.
41
- * }</pre>
46
+ * }
47
+ * </pre>
42
48
*
43
49
* @see org.junit.experimental.theories.Theory
44
50
* @see org.junit.experimental.theories.DataPoint
You can’t perform that action at this time.
0 commit comments