Parameter annotation in Junit
Parameter Annotation In Junit
Parameter annotation work same as we do in DataProvider annotation
Here we use 2 annotations
1 Parameter annotation
2 Run With Annotation
@Parameter annotation
Method under the parameter annotation is a static method
This return a list
Value returned by Parameter annotation need to be assigned to variable in constructor
@RunWith annotation
@RunWith(Parameterized.Class)
Need to pass it before class to show that class will run with parameters
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment