@@ -561,28 +561,28 @@ public void testGetOptions() {
561561 @ Test
562562 public void testGetDiskType () {
563563 EasyMock .expect (
564- computeRpcMock .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .diskType (), EMPTY_RPC_OPTIONS ))
564+ computeRpcMock .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .type (), EMPTY_RPC_OPTIONS ))
565565 .andReturn (DISK_TYPE .toPb ());
566566 EasyMock .replay (computeRpcMock );
567567 compute = options .service ();
568- DiskType diskType = compute .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .diskType ());
568+ DiskType diskType = compute .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .type ());
569569 assertEquals (DISK_TYPE , diskType );
570570 }
571571
572572 @ Test
573573 public void testGetDiskType_Null () {
574574 EasyMock .expect (
575- computeRpcMock .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .diskType (), EMPTY_RPC_OPTIONS ))
575+ computeRpcMock .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .type (), EMPTY_RPC_OPTIONS ))
576576 .andReturn (null );
577577 EasyMock .replay (computeRpcMock );
578578 compute = options .service ();
579- assertNull (compute .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .diskType ()));
579+ assertNull (compute .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .type ()));
580580 }
581581
582582 @ Test
583583 public void testGetDiskTypeFromDiskTypeId () {
584584 EasyMock .expect (
585- computeRpcMock .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .diskType (), EMPTY_RPC_OPTIONS ))
585+ computeRpcMock .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .type (), EMPTY_RPC_OPTIONS ))
586586 .andReturn (DISK_TYPE .toPb ());
587587 EasyMock .replay (computeRpcMock );
588588 compute = options .service ();
@@ -595,12 +595,12 @@ public void testGetDiskTypeWithSelectedFields() {
595595 Capture <Map <ComputeRpc .Option , Object >> capturedOptions = Capture .newInstance ();
596596 EasyMock .expect (
597597 computeRpcMock .getDiskType (
598- eq (DISK_TYPE_ID .zone ()), eq (DISK_TYPE_ID .diskType ()), capture (capturedOptions )))
598+ eq (DISK_TYPE_ID .zone ()), eq (DISK_TYPE_ID .type ()), capture (capturedOptions )))
599599 .andReturn (DISK_TYPE .toPb ());
600600 EasyMock .replay (computeRpcMock );
601601 compute = options .service ();
602602 DiskType diskType =
603- compute .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .diskType (), DISK_TYPE_OPTION_FIELDS );
603+ compute .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .type (), DISK_TYPE_OPTION_FIELDS );
604604 String selector = (String ) capturedOptions .getValue ().get (DISK_TYPE_OPTION_FIELDS .rpcOption ());
605605 assertTrue (selector .contains ("selfLink" ));
606606 assertTrue (selector .contains ("id" ));
@@ -748,30 +748,30 @@ public void testAggregatedListDiskTypesWithOptions() {
748748 public void testGetMachineType () {
749749 EasyMock .expect (
750750 computeRpcMock .getMachineType (
751- MACHINE_TYPE_ID .zone (), MACHINE_TYPE_ID .machineType (), EMPTY_RPC_OPTIONS ))
751+ MACHINE_TYPE_ID .zone (), MACHINE_TYPE_ID .type (), EMPTY_RPC_OPTIONS ))
752752 .andReturn (MACHINE_TYPE .toPb ());
753753 EasyMock .replay (computeRpcMock );
754754 compute = options .service ();
755755 MachineType machineType =
756- compute .getMachineType (MACHINE_TYPE_ID .zone (), MACHINE_TYPE_ID .machineType ());
756+ compute .getMachineType (MACHINE_TYPE_ID .zone (), MACHINE_TYPE_ID .type ());
757757 assertEquals (MACHINE_TYPE , machineType );
758758 }
759759
760760 @ Test
761761 public void testGetMachineType_Null () {
762762 EasyMock .expect (
763763 computeRpcMock .getMachineType (
764- MACHINE_TYPE_ID .zone (), MACHINE_TYPE_ID .machineType (), EMPTY_RPC_OPTIONS ))
764+ MACHINE_TYPE_ID .zone (), MACHINE_TYPE_ID .type (), EMPTY_RPC_OPTIONS ))
765765 .andReturn (null );
766766 EasyMock .replay (computeRpcMock );
767767 compute = options .service ();
768- assertNull (compute .getMachineType (MACHINE_TYPE_ID .zone (), MACHINE_TYPE_ID .machineType ()));
768+ assertNull (compute .getMachineType (MACHINE_TYPE_ID .zone (), MACHINE_TYPE_ID .type ()));
769769 }
770770
771771 @ Test
772772 public void testGetMachineTypeFromMachineTypeId () {
773773 EasyMock .expect (computeRpcMock .getMachineType (
774- MACHINE_TYPE_ID .zone (), MACHINE_TYPE_ID .machineType (), EMPTY_RPC_OPTIONS ))
774+ MACHINE_TYPE_ID .zone (), MACHINE_TYPE_ID .type (), EMPTY_RPC_OPTIONS ))
775775 .andReturn (MACHINE_TYPE .toPb ());
776776 EasyMock .replay (computeRpcMock );
777777 compute = options .service ();
@@ -783,13 +783,13 @@ public void testGetMachineTypeFromMachineTypeId() {
783783 public void testGetMachineTypeWithSelectedFields () {
784784 Capture <Map <ComputeRpc .Option , Object >> capturedOptions = Capture .newInstance ();
785785 EasyMock .expect (
786- computeRpcMock .getMachineType (eq (MACHINE_TYPE_ID .zone ()), eq (MACHINE_TYPE_ID .machineType ()),
786+ computeRpcMock .getMachineType (eq (MACHINE_TYPE_ID .zone ()), eq (MACHINE_TYPE_ID .type ()),
787787 capture (capturedOptions )))
788788 .andReturn (MACHINE_TYPE .toPb ());
789789 EasyMock .replay (computeRpcMock );
790790 compute = options .service ();
791791 MachineType machineType = compute .getMachineType (MACHINE_TYPE_ID .zone (),
792- MACHINE_TYPE_ID .machineType (), MACHINE_TYPE_OPTION_FIELDS );
792+ MACHINE_TYPE_ID .type (), MACHINE_TYPE_OPTION_FIELDS );
793793 String selector = (String ) capturedOptions .getValue ().get (DISK_TYPE_OPTION_FIELDS .rpcOption ());
794794 assertTrue (selector .contains ("selfLink" ));
795795 assertTrue (selector .contains ("id" ));
@@ -3169,7 +3169,7 @@ public void testCreateNetworkWithOptions() {
31693169 @ Test
31703170 public void testRetryableException () {
31713171 EasyMock .expect (
3172- computeRpcMock .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .diskType (), EMPTY_RPC_OPTIONS ))
3172+ computeRpcMock .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .type (), EMPTY_RPC_OPTIONS ))
31733173 .andThrow (new ComputeException (500 , "InternalError" ))
31743174 .andReturn (DISK_TYPE .toPb ());
31753175 EasyMock .replay (computeRpcMock );
@@ -3182,7 +3182,7 @@ public void testRetryableException() {
31823182 public void testNonRetryableException () {
31833183 String exceptionMessage = "Not Implemented" ;
31843184 EasyMock .expect (
3185- computeRpcMock .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .diskType (), EMPTY_RPC_OPTIONS ))
3185+ computeRpcMock .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .type (), EMPTY_RPC_OPTIONS ))
31863186 .andThrow (new ComputeException (501 , exceptionMessage ));
31873187 EasyMock .replay (computeRpcMock );
31883188 compute = options .toBuilder ().retryParams (RetryParams .defaultInstance ()).build ().service ();
@@ -3195,7 +3195,7 @@ public void testNonRetryableException() {
31953195 public void testRuntimeException () {
31963196 String exceptionMessage = "Artificial runtime exception" ;
31973197 EasyMock .expect (
3198- computeRpcMock .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .diskType (), EMPTY_RPC_OPTIONS ))
3198+ computeRpcMock .getDiskType (DISK_TYPE_ID .zone (), DISK_TYPE_ID .type (), EMPTY_RPC_OPTIONS ))
31993199 .andThrow (new RuntimeException (exceptionMessage ));
32003200 EasyMock .replay (computeRpcMock );
32013201 compute = options .toBuilder ().retryParams (RetryParams .defaultInstance ()).build ().service ();
0 commit comments