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_checkIfDataCenterExists_whenDataCenterExists() throws Exception {
          final DataCenterVO dataCenter = new DataCenterVO();
          when(dataCenterDao.findById(1L)).thenReturn(dataCenter);
          final ResourceChecker resourceChecker = buildResourceChecker();
  
  
          assertThat(resourceChecker.checkIfDataCenterExists(1L), is(dataCenter));
      }
test_case.class_method_signature: ResourceCheckerTest.test_checkIfDataCenterExists_whenDataCenterExists()
test_case.full_signature: @Test public void test_checkIfDataCenterExists_whenDataCenterExists()
test_case.identifier: test_checkIfDataCenterExists_whenDataCenterExists
test_case.invocations: thenReturn when findById buildResourceChecker assertThat checkIfDataCenterExists is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_checkIfDataCenterExists_whenDataCenterExists()
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 DataCenterVO checkIfDataCenterExists(final Long dataCenterId) {
          logger.debug("Checking if data center" + dataCenterId + " exists");
          final DataCenterVO zone = dataCenterDao.findById(dataCenterId);
          if (zone == null) {
              final InvalidParameterValueException e = new InvalidParameterValueException("Can't find data center by the id: " + dataCenterId);
              e.addProxyObject(String.valueOf(dataCenterId), "dcId");
              throw e;
          }
          logger.debug("Data center " + dataCenterId + "exists");
          return zone;
      }
focal_method.class_method_signature: ResourceChecker.checkIfDataCenterExists(final Long dataCenterId)
focal_method.full_signature: public DataCenterVO checkIfDataCenterExists(final Long dataCenterId)
focal_method.identifier: checkIfDataCenterExists
focal_method.invocations: debug findById addProxyObject valueOf debug
focal_method.modifiers: public
focal_method.parameters: (final Long dataCenterId)
focal_method.return: DataCenterVO
focal_method.signature: DataCenterVO checkIfDataCenterExists(final Long dataCenterId)