Test annotation parameters in junit

Here is the list of parameters that can be passed to @Test Annotation in JUnit.
 
@Test(expected=IOException.class)
@Test(timeout=100)
@Test(dataProvider = “WordPressdata”)

expected parameter is used to verify that specific exception is thrown by the test. timeout parameter is used to specify the timeout of the test. If the test takes more time than given timeout, test fails. dataprovider is used to pass the test data to test from data source.

Web development and Automation testing

solutions delivered!!