We are interested in testing the performance of the static class EMath with the following public interface;
Question:
We are interested in testing the performance of the static class EMath with the following public interface;
+ gcd(String x. String y): int, NumberFormatException
+ absolute(String x): int NumberFormatException
+ module(String x, Suing y ): int ArithmeticException, NumberFormatException
Where the member methods of the class;
gcd(x, y) returns the greatest common divisor of the integer numbers x and y, or exception.
absolute(x) returns the absolute value of x, or exception.
modulo(x, y) returns x modulus y, or exception.
Develop a bank of test using the tools NetBeans and JUnit for testing the right performance of Java objects of the class EMath.
Concepts in practice: Unit Testing with NetBeans and JUnit
Probability & Statistics for Engineers & Scientists
ISBN: 978-0130415295
7th Edition
Authors: Ronald E. Walpole, Raymond H. Myers, Sharon L. Myers, Keying