@Test public void test_calculateRequiredCapacity() { final SecondaryStorageCapacityCalculator calculator = new SecondaryStorageCapacityCalculator(); final int requiredVms = calculator.calculateRequiredCapacity(commandsStandBy, commandsPerVm); assertThat(requiredVms, is(expected)); }
public int calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm) { final double ratio = (double) commandsStandBy / (double) commandsPerVm; return new Double(Math.ceil(ratio)).intValue(); }
SecondaryStorageCapacityCalculator { public int calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm) { final double ratio = (double) commandsStandBy / (double) commandsPerVm; return new Double(Math.ceil(ratio)).intValue(); } }
SecondaryStorageCapacityCalculator { public int calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm) { final double ratio = (double) commandsStandBy / (double) commandsPerVm; return new Double(Math.ceil(ratio)).intValue(); }  }
SecondaryStorageCapacityCalculator { public int calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm) { final double ratio = (double) commandsStandBy / (double) commandsPerVm; return new Double(Math.ceil(ratio)).intValue(); }  int calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm); }
SecondaryStorageCapacityCalculator { public int calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm) { final double ratio = (double) commandsStandBy / (double) commandsPerVm; return new Double(Math.ceil(ratio)).intValue(); }  int calculateRequiredCapacity(final int commandsStandBy, final int commandsPerVm);  }