@Test public void timeIsInvalid_whenGivenInWrongFormat() { assertThat(RobotTimeFormat.isValidRobotTimeArgument("abc")).isFalse(); assertThat(RobotTimeFormat.isValidRobotTimeArgument("5 days 1 minute 4 hours 15 sec 123 ms")).isFalse(); assertThat(RobotTimeFormat.isValidRobotTimeArgument("15 sec 4 hours 123 ms")).isFalse(); assertThat(RobotTimeFormat.isValidRobotTimeArgument("12:")).isFalse(); assertThat(RobotTimeFormat.isValidRobotTimeArgument("-12:-5")).isFalse(); assertThat(RobotTimeFormat.isValidRobotTimeArgument("12:13:14:15")).isFalse(); }
public static boolean isValidRobotTimeArgument(final String argument) { return isPlainNumber(argument) || isTimeString(argument) || isTimerString(argument); }
RobotTimeFormat { public static boolean isValidRobotTimeArgument(final String argument) { return isPlainNumber(argument) || isTimeString(argument) || isTimerString(argument); } }
RobotTimeFormat { public static boolean isValidRobotTimeArgument(final String argument) { return isPlainNumber(argument) || isTimeString(argument) || isTimerString(argument); }  }
RobotTimeFormat { public static boolean isValidRobotTimeArgument(final String argument) { return isPlainNumber(argument) || isTimeString(argument) || isTimerString(argument); }  static boolean isValidRobotTimeArgument(final String argument); }
RobotTimeFormat { public static boolean isValidRobotTimeArgument(final String argument) { return isPlainNumber(argument) || isTimeString(argument) || isTimerString(argument); }  static boolean isValidRobotTimeArgument(final String argument);  }