Skip to content

Commit dc4585d

Browse files
committed
Travis no longer supports oraclejdk.
1 parent 305c6f5 commit dc4585d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: java
22
jdk:
3-
- oraclejdk8
3+
- openjdk8
44
script: "mvn install -DskipTests=true"
55

src/test/java/org/adoptopenjdk/lambda/tutorial/Exercise_5_Test.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,4 +252,8 @@ private Matcher<Song> songBy(String artist) {
252252
return FeatureMatchers.from(equalTo(artist), "a song by", "artist", Song::getArtist);
253253
}
254254

255+
private Matcher<? super List<Song>> containsSongsBy(String... artists) {
256+
List<Matcher<? super Song>> songMatchers = Stream.of(artists).map(this::songBy).collect(Collectors.toList());
257+
return contains(songMatchers);
258+
}
255259
}

0 commit comments

Comments
 (0)