Question: this is the complete problem We are interested in testing the class XClass java with the following public interface: tools.XClass + divide( String a, String

this is the complete problem

this is the complete problem We are interested in testing the class

We are interested in testing the class XClass java with the following public interface: tools.XClass + divide( String a, String b ): int, Range Exception tools RangeException extends Exception + RangeException) super("'A RangeException object was generated") Where, in general terms, the public method divide(a, b) must return the integer division between a and b, and in particular, we will consider the following partition: 1- Ifa or b not in Z NumberFormatException else 2.- ifb-0 ArithmeticException 4.- ifab a/b 5- ifacb 0 Develop a test bank with two tests for testing case 3 and 4 in the input-output partition above. Use the tools NetBeans and JUnit for testing the right performance of the method divide in those two cases. Upload your Netbeans project in a zipped file with name question 06.zip

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!