Question: We are using NetBeans as our IDE, and the purpose of this exercise is: Unit Testing Frameworks make it easier to write and maintain unit

We are using NetBeans as our IDE, and the purpose of this exercise is: Unit Testing Frameworks make it easier to write and maintain unit tests. In this class we will use the Apache JUnit Framework.
I haven't written any code in any language in YEARS, and am stuck. I've tried the resource links that were provided by the professor, but still can't figure it out.
Write a class that has two static methods squareRoot() and cubeRoot(). Both methods will take a single integer argument and return an integer value that is closest to the floating point square root or cube root. Use JUnit 5 to write unit tests for both these methods based on the specification just provided.
Add the following two methods to your Project2 class...
public static int squareRoot(int x){
return 2;
}
public static int cubeRoot(int x){
return 2;
}

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 Programming Questions!