Tutorialspoint examples

Learn java tutorial with examples for beginners online

Junit test runner

Test runner is used for executing the test cases. Example: DivisionTestCase.java import com.javawithease.business.*; import static org.junit.Assert.*; import org.junit.Test;   /** * This is test case class for… Read More

JUnit parameterized test

The parameterized test is a new feature introduced in JUnit 4. It provides the facility to execute the same test case again and again with different values.… Read More

JUnit expected exception test

Expected exception test is used for the methods which can throw an exception. We have to specify expected exception in @Test(expected = expectedException.class) action. If expected exception… Read More
Copyright © 2018 Tutorialspoint examples DMCA.com Protection Status