package org.joda.time.tz; import java.io.*; import java.util.*; import java.text.*; import org.joda.time.base.*; import org.joda.time.convert.*; import org.joda.time.field.*; import org.joda.time.format.*; import org.joda.time.chrono.*; import org.joda.time.*; import org.joda.time.tz.*; public class CachedDateTimeZoneTest { //------------------------ IOD ---------------------------------------------------------------------------------- /* public int test1(){ DateTimeZone zone = DateTimeZone.forID("+01:00"); CachedDateTimeZone z1 = CachedDateTimeZone.forZone(zone); return z1.hashCode(); }*/ //------------------------ IOD ---------------------------------------------------------------------------------- //------------------------ PCI ---------------------------------------------------------------------------------- /* public int test2(){ DateTimeZone zone = DateTimeZone.forID("+01:00"); CachedDateTimeZone z1 = CachedDateTimeZone.forZone(zone); return z1.hashCode(); } public boolean test3(){ DateTimeZone zone = DateTimeZone.forID("+01:00"); CachedDateTimeZone z1 = CachedDateTimeZone.forZone(zone); return z1.isFixed(); }*/ public boolean test4(){ DateTimeZone zone = DateTimeZone.forID("+01:00"); //FixedDateTimeZone z2 = new FixedDateTimeZone("id", "nameKey", 2, 1); CachedDateTimeZone z1 = CachedDateTimeZone.forZone(zone); CachedDateTimeZone z2 = CachedDateTimeZone.forZone(z1); return z2.isFixed(); } //------------------------ PCI ---------------------------------------------------------------------------------- }