List of usage examples for org.jfree.data.time Year getLastMillisecond
@Override public long getLastMillisecond()
From source file:org.jfree.data.time.YearTest.java
/** * Some checks for the getLastMillisecond() method. *///from www . ja v a 2 s .c om @Test public void testGetLastMillisecond() { Locale saved = Locale.getDefault(); Locale.setDefault(Locale.UK); TimeZone savedZone = TimeZone.getDefault(); TimeZone.setDefault(TimeZone.getTimeZone("Europe/London")); Year y = new Year(1970); // TODO: Check this result... assertEquals(31532399999L, y.getLastMillisecond()); Locale.setDefault(saved); TimeZone.setDefault(savedZone); }