test_class.declarator: commandsStandBy
test_class.modifier: private final
test_class.original_string: private final int commandsStandBy;
test_class.type: int
test_class.var_name: commandsStandBy
test_class.declarator: commandsPerVm
test_class.modifier: private final
test_class.original_string: private final int commandsPerVm;
test_class.type: int
test_class.var_name: commandsPerVm
test_class.declarator: expected
test_class.modifier: private final
test_class.original_string: private final int expected;
test_class.type: int
test_class.var_name: expected
test_class.file: cosmic-core/server/src/test/java/com/cloud/storage/secondary/SecondaryStorageCapacityCalculatorTest.java
test_class.identifier: SecondaryStorageCapacityCalculatorTest
test_case.body: @Test
      public void test_calculateRequiredCapacity() {
          final SecondaryStorageCapacityCalculator calculator = new SecondaryStorageCapacityCalculator();
  
          final int requiredVms = calculator.calculateRequiredCapacity(commandsStandBy, commandsPerVm);
  
          assertThat(requiredVms, is(expected));
      }
test_case.class_method_signature: SecondaryStorageCapacityCalculatorTest.test_calculateRequiredCapacity()
test_case.full_signature: @Test public void test_calculateRequiredCapacity()
test_case.identifier: test_calculateRequiredCapacity
test_case.invocations: calculateRequiredCapacity assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_calculateRequiredCapacity()
focal_class.file: cosmic-core/server/src/main/java/com/cloud/storage/secondary/SecondaryStorageCapacityCalculator.java
focal_class.identifier: SecondaryStorageCapacityCalculator
focal_class.class_method_signature: SecondaryStorageCapacityCalculator.calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm)
focal_class.full_signature: public int calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm)
focal_class.identifier: calculateRequiredCapacity
focal_class.modifiers: public
focal_class.parameters: (final int commandsStandBy, final int commandsPerVm)
focal_class.return: int
focal_class.signature: int calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm)
focal_method.body: public int calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm) {
          final double ratio = (double) commandsStandBy / (double) commandsPerVm;
          return new Double(Math.ceil(ratio)).intValue();
      }
focal_method.class_method_signature: SecondaryStorageCapacityCalculator.calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm)
focal_method.full_signature: public int calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm)
focal_method.identifier: calculateRequiredCapacity
focal_method.invocations: intValue ceil
focal_method.modifiers: public
focal_method.parameters: (final int commandsStandBy, final int commandsPerVm)
focal_method.return: int
focal_method.signature: int calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm)