diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListAlertsResponseTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListAlertsResponseTest.java index ab6963133b..6e4b1f3ac1 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListAlertsResponseTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListAlertsResponseTest.java @@ -18,25 +18,20 @@ */ package org.jclouds.cloudstack.parse; -import com.google.common.collect.ImmutableSet; -import com.google.inject.Guice; -import com.google.inject.Injector; +import java.util.Calendar; +import java.util.Set; +import java.util.TimeZone; + import org.jclouds.cloudstack.config.CloudStackParserModule; -import org.jclouds.cloudstack.domain.Account; -import org.jclouds.cloudstack.domain.Account.State; -import org.jclouds.cloudstack.domain.Account.Type; import org.jclouds.cloudstack.domain.Alert; -import org.jclouds.cloudstack.domain.User; -import org.jclouds.date.internal.SimpleDateFormatDateService; import org.jclouds.json.BaseSetParserTest; import org.jclouds.json.config.GsonModule; import org.jclouds.rest.annotations.SelectJson; import org.testng.annotations.Test; -import sun.util.resources.CalendarData; -import java.util.Calendar; -import java.util.Date; -import java.util.Set; +import com.google.common.collect.ImmutableSet; +import com.google.inject.Guice; +import com.google.inject.Injector; /** * @@ -67,11 +62,11 @@ public class ListAlertsResponseTest extends BaseSetParserTest { @Override @SelectJson("alert") public Set expected() { - Calendar c = Calendar.getInstance(); + Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT")); c.set(Calendar.YEAR, 2011); c.set(Calendar.MONTH, Calendar.DECEMBER); c.set(Calendar.DAY_OF_MONTH, 4); - c.set(Calendar.HOUR_OF_DAY, 12); + c.set(Calendar.HOUR_OF_DAY, 10); c.set(Calendar.MINUTE, 5); c.set(Calendar.SECOND, 2); return ImmutableSet.of(Alert.builder() diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListCapacityResponseTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListCapacityResponseTest.java index 117b21bdf3..e0d1bc35dc 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListCapacityResponseTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListCapacityResponseTest.java @@ -18,25 +18,14 @@ */ package org.jclouds.cloudstack.parse; -import com.google.common.collect.ImmutableSet; -import com.google.inject.Guice; -import com.google.inject.Injector; -import org.jclouds.cloudstack.config.CloudStackParserModule; -import org.jclouds.cloudstack.domain.Account; -import org.jclouds.cloudstack.domain.Account.State; -import org.jclouds.cloudstack.domain.Account.Type; +import java.util.Set; + import org.jclouds.cloudstack.domain.Capacity; -import org.jclouds.cloudstack.domain.User; -import org.jclouds.date.internal.SimpleDateFormatDateService; import org.jclouds.json.BaseSetParserTest; -import org.jclouds.json.config.GsonModule; import org.jclouds.rest.annotations.SelectJson; import org.testng.annotations.Test; -import sun.util.resources.CalendarData; -import java.util.Calendar; -import java.util.Date; -import java.util.Set; +import com.google.common.collect.ImmutableSet; /** *