File tree Expand file tree Collapse file tree
src/main/java/com/google/testing/junit/testparameterinjector Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9292 *
9393 * <p>If this field is set, {@link #value()} must be empty and vice versa.
9494 *
95- * <h3> Example</h3 >
95+ * <p><b> Example</b >
9696 *
9797 * <pre>
9898 * {@literal @}Test
9999 * public void matchesAllOf_throwsOnNull(
100100 * {@literal @}TestParameter(valuesProvider = CharMatcherProvider.class)
101101 * CharMatcher charMatcher) {
102- * assertThrows(NullPointerException.class, () -> charMatcher.matchesAllOf(null));
102+ * assertThrows(NullPointerException.class, () -> charMatcher.matchesAllOf(null));
103103 * }
104104 *
105105 * private static final class CharMatcherProvider implements TestParameterValuesProvider {
106106 * {@literal @}Override
107- * public List<CharMatcher> provideValues() {
107+ * public {@literal List<CharMatcher>} provideValues() {
108108 * return ImmutableList.of(CharMatcher.any(), CharMatcher.ascii(), CharMatcher.whitespace());
109109 * }
110110 * }
Original file line number Diff line number Diff line change 7373 * <p>For dynamic sets of parameters or parameter types that are not supported here, use {@link
7474 * #valuesProvider()} and leave this field empty.
7575 *
76- * <h3> Examples</h3 >
76+ * <p><b> Examples</b >
7777 *
7878 * <pre>
7979 * {@literal @}Test
9999 *
100100 * <p>If this field is set, {@link #value()} must be empty and vice versa.
101101 *
102- * <h3> Example</h3 >
102+ * <p><b> Example</b >
103103 *
104104 * <pre>
105105 * {@literal @}Test
106106 * {@literal @}TestParameters(valuesProvider = IsAdultValueProvider.class)
107107 * public void personIsAdult(int age, boolean expectIsAdult) { ... }
108108 *
109109 * private static final class IsAdultValueProvider implements TestParametersValuesProvider {
110- * {@literal @}Override public List<TestParametersValues> provideValues() {
110+ * {@literal @}Override public {@literal List<TestParametersValues>} provideValues() {
111111 * return ImmutableList.of(
112112 * TestParametersValues.builder()
113113 * .name("teenager")
You can’t perform that action at this time.
0 commit comments