test_class.declarator: dataCenterDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DataCenterDao dataCenterDao;
test_class.type: DataCenterDao
test_class.var_name: dataCenterDao
test_class.declarator: accountManager
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private AccountManager accountManager;
test_class.type: AccountManager
test_class.var_name: accountManager
test_class.declarator: hostPodDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private HostPodDao hostPodDao;
test_class.type: HostPodDao
test_class.var_name: hostPodDao
test_class.file: server/src/test/java/com/cloud/resource/ResourceCheckerTest.java
test_class.identifier: ResourceCheckerTest
test_case.body: @Test
      public void test_checkIfPodIsUsable_whenPodBelongsToDataCenter() throws Exception {
          final DataCenterVO dataCenter = new DataCenterVO();
          dataCenter.setId(1L);
          dataCenter.setUuid("DataCenterUUID");
          final HostPodVO hostPod = new HostPodVO();
          hostPod.setDataCenterId(1L);
          hostPod.setUuid("HostPodUUID");
          final ResourceChecker resourceChecker = buildResourceChecker();
  
          try {
              resourceChecker.checkIfPodIsUsable(dataCenter, hostPod);
          } catch (final InvalidParameterValueException e) {
              fail("No InvalidParameterValueException should have been generated");
          }
      }
test_case.class_method_signature: ResourceCheckerTest.test_checkIfPodIsUsable_whenPodBelongsToDataCenter()
test_case.full_signature: @Test public void test_checkIfPodIsUsable_whenPodBelongsToDataCenter()
test_case.identifier: test_checkIfPodIsUsable_whenPodBelongsToDataCenter
test_case.invocations: setId setUuid setDataCenterId setUuid buildResourceChecker checkIfPodIsUsable fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_checkIfPodIsUsable_whenPodBelongsToDataCenter()
focal_class.declarator: logger = Logger.getLogger(ResourceManagerImpl.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = Logger.getLogger(ResourceManagerImpl.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: dataCenterDao
focal_class.modifier: private final
focal_class.original_string: private final DataCenterDao dataCenterDao;
focal_class.type: DataCenterDao
focal_class.var_name: dataCenterDao
focal_class.declarator: accountManager
focal_class.modifier: private final
focal_class.original_string: private final AccountManager accountManager;
focal_class.type: AccountManager
focal_class.var_name: accountManager
focal_class.declarator: hostPodDao
focal_class.modifier: private final
focal_class.original_string: private final HostPodDao hostPodDao;
focal_class.type: HostPodDao
focal_class.var_name: hostPodDao
focal_class.file: server/src/main/java/com/cloud/resource/ResourceChecker.java
focal_class.identifier: ResourceChecker
focal_class.class_method_signature: ResourceChecker.builder()
focal_class.full_signature: public static Builder builder()
focal_class.identifier: builder
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Builder
focal_class.signature: Builder builder()
focal_class.class_method_signature: ResourceChecker.ResourceChecker(final Builder builder)
focal_class.full_signature: private  ResourceChecker(final Builder builder)
focal_class.identifier: ResourceChecker
focal_class.modifiers: private
focal_class.parameters: (final Builder builder)
focal_class.signature:  ResourceChecker(final Builder builder)
focal_class.class_method_signature: ResourceChecker.checkIfDataCenterExists(final Long dataCenterId)
focal_class.full_signature: public DataCenterVO checkIfDataCenterExists(final Long dataCenterId)
focal_class.identifier: checkIfDataCenterExists
focal_class.modifiers: public
focal_class.parameters: (final Long dataCenterId)
focal_class.return: DataCenterVO
focal_class.signature: DataCenterVO checkIfDataCenterExists(final Long dataCenterId)
focal_class.class_method_signature: ResourceChecker.checkIfDataCenterIsUsable(final DataCenter dataCenter, final Account account)
focal_class.full_signature: public void checkIfDataCenterIsUsable(final DataCenter dataCenter, final Account account)
focal_class.identifier: checkIfDataCenterIsUsable
focal_class.modifiers: public
focal_class.parameters: (final DataCenter dataCenter, final Account account)
focal_class.return: void
focal_class.signature: void checkIfDataCenterIsUsable(final DataCenter dataCenter, final Account account)
focal_class.class_method_signature: ResourceChecker.checkIfPodExists(final Long hostPodId)
focal_class.full_signature: public HostPodVO checkIfPodExists(final Long hostPodId)
focal_class.identifier: checkIfPodExists
focal_class.modifiers: public
focal_class.parameters: (final Long hostPodId)
focal_class.return: HostPodVO
focal_class.signature: HostPodVO checkIfPodExists(final Long hostPodId)
focal_class.class_method_signature: ResourceChecker.checkIfPodIsUsable(final DataCenter dataCenter, final HostPodVO hostPod)
focal_class.full_signature: public void checkIfPodIsUsable(final DataCenter dataCenter, final HostPodVO hostPod)
focal_class.identifier: checkIfPodIsUsable
focal_class.modifiers: public
focal_class.parameters: (final DataCenter dataCenter, final HostPodVO hostPod)
focal_class.return: void
focal_class.signature: void checkIfPodIsUsable(final DataCenter dataCenter, final HostPodVO hostPod)
focal_method.body: public void checkIfPodIsUsable(final DataCenter dataCenter, final HostPodVO hostPod) {
          final long hostPodId = hostPod.getId();
          logger.debug("Checking if pod " + hostPodId + " is usable.");
          if (!hostPod.belongsToDataCenter(dataCenter.getId())) {
              final String hostPodUuid = hostPod.getUuid();
              final String dataCenterUuid = dataCenter.getUuid();
              final InvalidParameterValueException ex =
                      new InvalidParameterValueException("Pod with specified pod " + hostPodUuid + " doesn't belong to the zone with specified dataCenter " + dataCenterUuid);
              ex.addProxyObject(hostPodUuid, "podId");
              ex.addProxyObject(dataCenterUuid, "dcId");
              throw ex;
          }
          logger.debug("Pod " + hostPodId + "is usable");
      }
focal_method.class_method_signature: ResourceChecker.checkIfPodIsUsable(final DataCenter dataCenter, final HostPodVO hostPod)
focal_method.full_signature: public void checkIfPodIsUsable(final DataCenter dataCenter, final HostPodVO hostPod)
focal_method.identifier: checkIfPodIsUsable
focal_method.invocations: getId debug belongsToDataCenter getId getUuid getUuid addProxyObject addProxyObject debug
focal_method.modifiers: public
focal_method.parameters: (final DataCenter dataCenter, final HostPodVO hostPod)
focal_method.return: void
focal_method.signature: void checkIfPodIsUsable(final DataCenter dataCenter, final HostPodVO hostPod)