Assume you have the following JavaDoc for a method: /** * Va…
Assume you have the following JavaDoc for a method: /** * Validates user login credentials. * * – A username must be at least 5 characters long and contain only alphanumeric characters. * – A password must be at least 8 characters long and include at least one number. * – If either is invalid, the method throws an IllegalArgumentException. * – If both are valid, the method returns true. * * @param username the user’s username. * @param password the user’s password. * @return true if the credentials are valid. * @throws IllegalArgumentException if the username or password is invalid. */ public boolean validateLogin(String username, String password); 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).