@Test public void testBadLength() { String s = "hello"; assertFalse(DataValidation.validateLength(s, 0, 4)); assertFalse(DataValidation.validateLength(s, 6, 100)); }
public static boolean validateLength(String input, int minimum, int maximum) { return input.length() >= minimum && input.length() <= maximum; }
DataValidation { public static boolean validateLength(String input, int minimum, int maximum) { return input.length() >= minimum && input.length() <= maximum; } }
DataValidation { public static boolean validateLength(String input, int minimum, int maximum) { return input.length() >= minimum && input.length() <= maximum; }  }
DataValidation { public static boolean validateLength(String input, int minimum, int maximum) { return input.length() >= minimum && input.length() <= maximum; }  static boolean validateLength(String input, int minimum, int maximum); }
DataValidation { public static boolean validateLength(String input, int minimum, int maximum) { return input.length() >= minimum && input.length() <= maximum; }  static boolean validateLength(String input, int minimum, int maximum);  }