package com.javarant.challenges.unittests; /** * This is the Advanced Challenge class for JavaRant.com episode #2 * * @author Jeffrey.Richley */ public interface AdvancedChallenge { /** * This method is to do three types of validation *
    *
  1. Null input is invalid
  2. *
  3. Valid length of input is at least three characters * and maximum length is eight
  4. *
  5. The input must not be a numeric value
  6. *
* @param value The user input to validate * @return True if all three validation rules are passed */ public boolean isValidInputForUser(String value); /** * This method returns the number of times this instance * has been asked to validate non-valid input through * the isValidInputForUser() method * @return The number of times invalid input has been input */ public int getNumberOfInvalidInputs(); }