Assume you have the following JavaDoc for a method: /** * Ca…
Assume you have the following JavaDoc for a method: /** * Categorizes vehicle speed. * * – speed < 0: throws IllegalArgumentException * - 0-25 mph: returns "SLOW" * - 26-55 mph: returns "MODERATE" * - 56-80 mph: returns "FAST" * - > 80 mph: returns “EXCESSIVE” * * @param speed the vehicle speed in mph * @return speed category string * @throws IllegalArgumentException if speed is negative */ public String getSpeedCategory(int speed); For the above example you should do a detailed Black-box test design. Create Equivalence Partitions and do a Boundary Value analysis – describe. Taking these into account design at least 6 test cases that you think are most important based on your partitions (I do not want Java code here, I want your test description). Make sure you mention the partitions and/or BV in the test cases you design. Then write one Unit Test (the syntax does not have to be 100% correct but should of course be in Java).