@Test(expected = ParseException.class) public void testValidateTimeZoneWhenInvalid() throws Exception { underTest.validateTimeZone("GMTzen"); }
public void validateTimeZone(String timeZone) throws ParseException { try { if (timeZone != null) { ZoneId.of(timeZone); } } catch (Exception ex) { throw new ParseException(ex.getMessage(), 0); } }
DateService { public void validateTimeZone(String timeZone) throws ParseException { try { if (timeZone != null) { ZoneId.of(timeZone); } } catch (Exception ex) { throw new ParseException(ex.getMessage(), 0); } } }
DateService { public void validateTimeZone(String timeZone) throws ParseException { try { if (timeZone != null) { ZoneId.of(timeZone); } } catch (Exception ex) { throw new ParseException(ex.getMessage(), 0); } }  }
DateService { public void validateTimeZone(String timeZone) throws ParseException { try { if (timeZone != null) { ZoneId.of(timeZone); } } catch (Exception ex) { throw new ParseException(ex.getMessage(), 0); } }  boolean isTrigger(TimeAlert alert, long monitorUpdateRate); boolean isTrigger(TimeAlert alert, long monitorUpdateRate, ZonedDateTime currentTime); CronSequenceGenerator getCronExpression(String cron); void validateTimeZone(String timeZone); }
DateService { public void validateTimeZone(String timeZone) throws ParseException { try { if (timeZone != null) { ZoneId.of(timeZone); } } catch (Exception ex) { throw new ParseException(ex.getMessage(), 0); } }  boolean isTrigger(TimeAlert alert, long monitorUpdateRate); boolean isTrigger(TimeAlert alert, long monitorUpdateRate, ZonedDateTime currentTime); CronSequenceGenerator getCronExpression(String cron); void validateTimeZone(String timeZone); static final int DAY_OF_WEEK_FIELD; static final int MINIMAL_CRON_SEGMENT_LENGTH; static final int MINIMAL_USER_DEFINED_CRON_SEGMENT_LENGTH; }