Question: CS 492: Use Junit and Eclipse environment to finish the following questions. (15pts) Review the slides and add Junit library before running your tests. You

 CS 492: Use Junit and Eclipse environment to finish the following

CS 492: Use Junit and Eclipse environment to finish the following questions. (15pts) Review the slides and add Junit library before running your tests. You need to create a new Project first, and then add the files. Due date: November 6, Monday. 1:59pm. Submit all screenshots of test result and test files. 1. Use the following code and write a test file called FactorialExceptionTest.java for the following factorial function. Test if it will throw an IllegalArgumentException exception if the parameter of the function is -3. (5pts) *Calculate the factorial of a number public class Factorial 1 public int factorial (int n) i if (n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!