Package com.microsoft.windowsazure.management.models

Examples of com.microsoft.windowsazure.management.models.SubscriptionListOperationsParameters


      }
     
      @Test
      public void listSubscriptionsSuccess() throws Exception {
         // Arrange 
         SubscriptionListOperationsParameters parameters = new  SubscriptionListOperationsParameters();

         Calendar now = Calendar.getInstance();
         Calendar startTime = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
         startTime.set(now.get(Calendar.YEAR), now.get(Calendar.MONTH) , now.get(Calendar.DATE - 5));
           Calendar endTime = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
           endTime.set(now.get(Calendar.YEAR), now.get(Calendar.MONTH) , now.get(Calendar.DATE - 1));
           parameters.setStartTime(startTime);
           parameters.setEndTime(endTime);
       
         SubscriptionListOperationsResponse subscriptionListOperationsResponse = managementClient.getSubscriptionsOperations().listOperations(parameters);
       
         Assert.assertEquals(200, subscriptionListOperationsResponse.getStatusCode());        
         Assert.assertNotNull(subscriptionListOperationsResponse.getRequestId());   
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.management.models.SubscriptionListOperationsParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.