Lines Matching defs:st1
28 SimpleTimeZone st1;
244 SimpleTimeZone st1 = new SimpleTimeZone(1000, "TEST",
248 assertTrue("Clone resulted in same reference", st1.clone() != st1);
249 assertTrue("Clone resulted in unequal object", ((SimpleTimeZone) st1
250 .clone()).equals(st1));
263 st1 = new SimpleTimeZone(tz.getRawOffset(), "EST");
265 assertFalse(st1.equals(st2));
266 st1.setRawOffset(st2.getRawOffset());
267 assertTrue(st1.equals(st2));
275 st1 = new SimpleTimeZone(0, "TEST");
278 0, st1.getDSTSavings());
279 st1.setStartRule(0, 1, 1, 1);
280 st1.setEndRule(11, 1, 1, 1);
283 3600000, st1.getDSTSavings());
284 st1 = new SimpleTimeZone(-5 * 3600000, "EST", Calendar.APRIL, 1,
287 assertEquals("Incorrect daylight savings from constructor", 7200000, st1
298 // TimeZone st1 = TimeZone.getTimeZone("EST");
299 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST");
300 assertTrue("Incorrect offset returned", st1.getOffset(
304 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST");
305 assertEquals("Incorrect offset returned", -(5 * 60 * 60 * 1000), st1
310 st1 = new SimpleTimeZone(TimeZone.getDefault().getRawOffset(), TimeZone.getDefault().getID());
312 st1.setRawOffset(fourHours);
313 assertEquals(fourHours, st1.getOffset(1, 2099, 01, 1, 5, 0));
316 st1.getOffset(-1, 2099, 01, 1, 5, 0);
323 st1.getOffset(1, 2099, 15, 1, 5, 0);
330 st1.getOffset(1, 2099, 01, 100, 5, 0);
337 st1.getOffset(1, 2099, 01, 1, 50, 0);
344 st1.getOffset(1, 2099, 01, 1, 5, -10);
356 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST");
358 st1.getRawOffset() == -(5 * 60 * 60 * 1000));
368 st1 = new SimpleTimeZone(-5 * 3600000, "EST", Calendar.APRIL, 1,
372 assertTrue(st1.hashCode() != 0);
603 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST");
604 int off = st1.getRawOffset();
605 st1.setRawOffset(1000);
606 boolean val = st1.getRawOffset() == 1000;
607 st1.setRawOffset(off);
804 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST");
806 assertTrue("Incorrect offset returned", st1.getOffset(cal.getTimeInMillis()) ==
809 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST");
811 assertEquals("Incorrect offset returned", -(5 * 60 * 60 * 1000), st1
815 st1
817 st1.setRawOffset(fourHours);
820 assertEquals(fourHours, st1.getOffset(cal.getTimeInMillis()));