File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
main/java/travelator/recommendations
test/java/travelator/recommendations Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 1
1
package travelator.recommendations
2
2
3
3
import travelator.destinations.FeaturedDestination
4
- import travelator.destinations.FeaturedDestinations
5
4
import travelator.domain.DistanceCalculator
6
5
import travelator.domain.Location
7
6
8
7
class Recommendations (
9
- private val featuredDestinations : FeaturedDestinations ,
10
8
private val distanceCalculator : DistanceCalculator ,
11
- private val destinationFinder :
12
- (Location ) -> List <FeaturedDestination > =
13
- featuredDestinations : :findCloseTo
9
+ private val destinationFinder : (Location ) -> List <FeaturedDestination >
14
10
) {
15
11
16
12
fun recommendationsFor (
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ public class RecommendationsTests {
23
23
private final FeaturedDestinations featuredDestinations =
24
24
mock (FeaturedDestinations .class );
25
25
private final Recommendations recommendations = new Recommendations (
26
- featuredDestinations ,
27
26
distanceCalculator ,
28
27
featuredDestinations ::findCloseTo
29
28
);
You can’t perform that action at this time.
0 commit comments