JUnit Tutorial
Introduction to Junit JUnit Set up JUnit Architecture JUnit Annotations JUnit Fixtures Junit Assertions Junit Categories @Test Annotation Parameters Verification of Exceptions Ignoring tests Time out in JUnit tests Parameterizing tests Test Suite TestWatcher TemporaryFolder ExternalResource Theories in JUnit JUnit Test Runners Execution order of JUnit tests Assumptions in JUnit JUnit and Hamcrest Matchers Running JUnit tests in parallel JUnit and Maven Integration JUnit and Gradle Integration Executing Selenium tests using JUnit test framework Method interceptor and usage JUnit in Intellij IDEA JUnit in EclipseAnnotations in junit
Here is the list of annotations used in JUnit.- Fixture related – @Test, @Before, @After, @BeforeClass, @AfterClass
- To ignore tests – @Ignore
- Parameterized tests annotations – @RunWith(Parameterized.class), @Parameters
- Suite related – @Suite.SuiteClasses, @RunWith(Suite.class)
- Category related – @Category, @IncludeCategory, @ExcludeCategory
- Rules related – @Rule
- Theory and Assumptions related – @Theory, @DataPoint, @DataPoints, @FromDataPoints, @RunWith(Theories.class)
Web development and Automation testing
solutions delivered!!