mirror of https://github.com/apache/jclouds.git
timezone doesn't help here
This commit is contained in:
parent
dd0c982b3e
commit
9eb10c62b3
|
@ -18,7 +18,10 @@
|
||||||
*/
|
*/
|
||||||
package org.jclouds.cloudstack.features;
|
package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import com.google.inject.TypeLiteral;
|
import java.lang.reflect.Method;
|
||||||
|
import java.util.Calendar;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
import org.jclouds.cloudstack.options.GenerateUsageRecordsOptions;
|
import org.jclouds.cloudstack.options.GenerateUsageRecordsOptions;
|
||||||
import org.jclouds.cloudstack.options.ListUsageRecordsOptions;
|
import org.jclouds.cloudstack.options.ListUsageRecordsOptions;
|
||||||
import org.jclouds.http.HttpRequest;
|
import org.jclouds.http.HttpRequest;
|
||||||
|
@ -27,10 +30,7 @@ import org.jclouds.rest.functions.MapHttp4xxCodesToExceptions;
|
||||||
import org.jclouds.rest.internal.RestAnnotationProcessor;
|
import org.jclouds.rest.internal.RestAnnotationProcessor;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import com.google.inject.TypeLiteral;
|
||||||
import java.util.Calendar;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.TimeZone;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests behavior of {@code GlobalUsageAsyncClient}
|
* Tests behavior of {@code GlobalUsageAsyncClient}
|
||||||
|
@ -41,7 +41,7 @@ import java.util.TimeZone;
|
||||||
public class GlobalUsageAsyncClientTest extends BaseCloudStackAsyncClientTest<GlobalUsageAsyncClient> {
|
public class GlobalUsageAsyncClientTest extends BaseCloudStackAsyncClientTest<GlobalUsageAsyncClient> {
|
||||||
|
|
||||||
public void testGenerateUsageRecords() throws Exception {
|
public void testGenerateUsageRecords() throws Exception {
|
||||||
Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
|
Calendar c = Calendar.getInstance();
|
||||||
c.set(Calendar.YEAR, 2012);
|
c.set(Calendar.YEAR, 2012);
|
||||||
c.set(Calendar.MONTH, Calendar.JANUARY);
|
c.set(Calendar.MONTH, Calendar.JANUARY);
|
||||||
c.set(Calendar.DAY_OF_MONTH, 1);
|
c.set(Calendar.DAY_OF_MONTH, 1);
|
||||||
|
@ -66,7 +66,7 @@ public class GlobalUsageAsyncClientTest extends BaseCloudStackAsyncClientTest<Gl
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testGenerateUsageRecordsOptions() throws Exception {
|
public void testGenerateUsageRecordsOptions() throws Exception {
|
||||||
Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
|
Calendar c = Calendar.getInstance();
|
||||||
c.set(Calendar.YEAR, 2012);
|
c.set(Calendar.YEAR, 2012);
|
||||||
c.set(Calendar.MONTH, Calendar.JANUARY);
|
c.set(Calendar.MONTH, Calendar.JANUARY);
|
||||||
c.set(Calendar.DAY_OF_MONTH, 1);
|
c.set(Calendar.DAY_OF_MONTH, 1);
|
||||||
|
@ -91,7 +91,7 @@ public class GlobalUsageAsyncClientTest extends BaseCloudStackAsyncClientTest<Gl
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testListUsageRecords() throws Exception {
|
public void testListUsageRecords() throws Exception {
|
||||||
Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
|
Calendar c = Calendar.getInstance();
|
||||||
c.set(Calendar.YEAR, 2012);
|
c.set(Calendar.YEAR, 2012);
|
||||||
c.set(Calendar.MONTH, Calendar.JANUARY);
|
c.set(Calendar.MONTH, Calendar.JANUARY);
|
||||||
c.set(Calendar.DAY_OF_MONTH, 1);
|
c.set(Calendar.DAY_OF_MONTH, 1);
|
||||||
|
@ -116,7 +116,7 @@ public class GlobalUsageAsyncClientTest extends BaseCloudStackAsyncClientTest<Gl
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testListUsageRecordsOptions() throws Exception {
|
public void testListUsageRecordsOptions() throws Exception {
|
||||||
Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
|
Calendar c = Calendar.getInstance();
|
||||||
c.set(Calendar.YEAR, 2012);
|
c.set(Calendar.YEAR, 2012);
|
||||||
c.set(Calendar.MONTH, Calendar.JANUARY);
|
c.set(Calendar.MONTH, Calendar.JANUARY);
|
||||||
c.set(Calendar.DAY_OF_MONTH, 1);
|
c.set(Calendar.DAY_OF_MONTH, 1);
|
||||||
|
|
Loading…
Reference in New Issue