Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
bitzl authored and tomzirn committed Jun 4, 2020
1 parent b37cf6f commit 0ffc75d
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ public Collection<Message> apply(R r) {
}
}

private Supplier<RuntimeException> exception(String message) {
return () -> new RuntimeException(message);
}

@Test
@DisplayName("should call the reader")
void read() {
Expand Down Expand Up @@ -80,8 +76,7 @@ void readTransformWriteShouldPassValues() {
Job<TestMessage, String, String> job = new Job<>(message);
job.read(TestMessage::getId);
job.transform(String::toUpperCase);
job.write(
(Function<String, Collection<Message>>) id -> Collections.singleton(new TestMessage(id)));
job.write(id -> Collections.singleton(new TestMessage(id)));

var actual = (TestMessage) unbox(job.getResult());
assertThat(actual.getId()).isEqualTo(message.getId().toUpperCase());
Expand Down

0 comments on commit 0ffc75d

Please sign in to comment.