{{theTime}}

Search This Blog

Total Pageviews

How to run a Junit class using Juni4 Library.

  1. Add the Junit4 libraries to your class path.  
  2. Update the test class using @RunWith(JUnit4.class) annotation.
  3. In Eclipse open Run Configuration and select "Test Runner" as "Junit4" before running the test.
Sample class:
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

@RunWith(JUnit4.class)
public class testPracticalNotes extends TestCase {
.......
.......
}

No comments:

Java Script GET request Sample Code

fetch(' https://api.public.com/api ')   .then(response => response.json())   .then(data => console.log(data))   .catch(error =...