-
Notifications
You must be signed in to change notification settings - Fork 9
0.8.x Annotations for JUnit4 @ParameterSource
An annotation to let JCUnit know that a method defines a parameter. The method to which this annotation is attached must return an instance of com.github.dakusui.jcunit8.factorspace.Parameter.Factory
.
@ParameterSource
public Parameter.Factory a() {
return ParameterUtils.simple(1, 2);
}
Parameter.Factory
creates an instance of Parameter
as its name suggests and it should return a list of values used as actual values of the parameter. Those values must be able to be assigned to method parameters referenced through @From
annotation. See explanations about @From
annotation for more detail.
Feature | Specification |
---|---|
name | @ParameterSource |
package | com.github.dakusui.jcunit8.runners.junit4.annotations |
target | A method in a parameter space class. |
attributes | none |
(none)
Copyright 2013 Hiroshi Ukai.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.