@Test public void shouldGetAll() throws Exception { service.getAll(); verify(repository).getAll(); }
public List<EquipmentEnergyType> getAll(){ return repository.getAll(); }
EquipmentEnergyTypeService { public List<EquipmentEnergyType> getAll(){ return repository.getAll(); } }
EquipmentEnergyTypeService { public List<EquipmentEnergyType> getAll(){ return repository.getAll(); }  }
EquipmentEnergyTypeService { public List<EquipmentEnergyType> getAll(){ return repository.getAll(); }  List<EquipmentEnergyType> getAll(); EquipmentEnergyType getById(Long id); void save(EquipmentEnergyType energyType); }
EquipmentEnergyTypeService { public List<EquipmentEnergyType> getAll(){ return repository.getAll(); }  List<EquipmentEnergyType> getAll(); EquipmentEnergyType getById(Long id); void save(EquipmentEnergyType energyType);  }