Question: using parameterized testing to run tests Requirements 1. Write a simple class named LengthConverter which converts kilometers to miles and vice versa (1 kilometer-0.621371192 miles).


using parameterized testing to run tests
Requirements 1. Write a simple class named LengthConverter which converts kilometers to miles and vice versa (1 kilometer-0.621371192 miles). It has the following two methods public double km ToMile(double km) public double mileToKm(double mile) If the argument is negative, an llegalArgumentException should be thrown. Requirements 1. In this assignment you will write additional JUnit tests to test the LengthConverter class you have written in Assignment 3. You will use parameterized JUnit tests to test both methods of LengthConverter 2. Use Eclipse IDE to compile and run the JUnit test
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
