@Test public void generatePotentialMixes_shouldbeCorrectLength() { final List<Map<String, Double>> maps = volumeLevelGenerator.generatePotentialMixes(); assertThat(maps.size()).isEqualTo(volumeLevelGenerator.NUM_OF_MIXES); }
public List<Map<String, Double>> generatePotentialMixes(){ List<Map<String, Double>> potentialMixes = new ArrayList<>(); for(int i=0; i<numOfGeneratedMixes; i++){ potentialMixes.add(generatePotentialMix()); } return potentialMixes; }
VolumeLevelGenerator { public List<Map<String, Double>> generatePotentialMixes(){ List<Map<String, Double>> potentialMixes = new ArrayList<>(); for(int i=0; i<numOfGeneratedMixes; i++){ potentialMixes.add(generatePotentialMix()); } return potentialMixes; } }
VolumeLevelGenerator { public List<Map<String, Double>> generatePotentialMixes(){ List<Map<String, Double>> potentialMixes = new ArrayList<>(); for(int i=0; i<numOfGeneratedMixes; i++){ potentialMixes.add(generatePotentialMix()); } return potentialMixes; }  }
VolumeLevelGenerator { public List<Map<String, Double>> generatePotentialMixes(){ List<Map<String, Double>> potentialMixes = new ArrayList<>(); for(int i=0; i<numOfGeneratedMixes; i++){ potentialMixes.add(generatePotentialMix()); } return potentialMixes; }  List<Map<String, Double>> generatePotentialMixes(); Map<String, Double> generatePotentialMix(); double generateRandomDecibleLevel(int min, int max); }
VolumeLevelGenerator { public List<Map<String, Double>> generatePotentialMixes(){ List<Map<String, Double>> potentialMixes = new ArrayList<>(); for(int i=0; i<numOfGeneratedMixes; i++){ potentialMixes.add(generatePotentialMix()); } return potentialMixes; }  List<Map<String, Double>> generatePotentialMixes(); Map<String, Double> generatePotentialMix(); double generateRandomDecibleLevel(int min, int max); final int DB_RANGE; final int NUM_OF_MIXES; }