@Test public void testSetTimeZone() throws Exception { try { TimeConv.setTimeZone("GMT+5"); TimeConv.setTimeZone(""); } catch (Exception e) { fail(); } exception.expect(IllegalArgumentException.class); TimeConv.setTimeZone(null); }
public static synchronized void setTimeZone(String timeZone) { if (timeZone != null) { DF.setTimeZone(TimeZone.getTimeZone(timeZone)); } else { throw new IllegalArgumentException("TimeZone cannot be null"); } }
TimeConv { public static synchronized void setTimeZone(String timeZone) { if (timeZone != null) { DF.setTimeZone(TimeZone.getTimeZone(timeZone)); } else { throw new IllegalArgumentException("TimeZone cannot be null"); } } }
TimeConv { public static synchronized void setTimeZone(String timeZone) { if (timeZone != null) { DF.setTimeZone(TimeZone.getTimeZone(timeZone)); } else { throw new IllegalArgumentException("TimeZone cannot be null"); } } private  TimeConv(); }
TimeConv { public static synchronized void setTimeZone(String timeZone) { if (timeZone != null) { DF.setTimeZone(TimeZone.getTimeZone(timeZone)); } else { throw new IllegalArgumentException("TimeZone cannot be null"); } } private  TimeConv(); static synchronized DateAndTime toDt(long currentTime); static synchronized void setTimeZone(String timeZone); static synchronized long toLong(DateAndTime dateAndTime); }
TimeConv { public static synchronized void setTimeZone(String timeZone) { if (timeZone != null) { DF.setTimeZone(TimeZone.getTimeZone(timeZone)); } else { throw new IllegalArgumentException("TimeZone cannot be null"); } } private  TimeConv(); static synchronized DateAndTime toDt(long currentTime); static synchronized void setTimeZone(String timeZone); static synchronized long toLong(DateAndTime dateAndTime);  }