Skip to content

Commit 8f2cbdf

Browse files
committed
Small improvements on the test examples.
1 parent 061e883 commit 8f2cbdf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,9 @@ subprojects {
9898
dependencies {
9999
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.16'
100100
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.16'
101+
testCompileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.16'
102+
testAnnotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.16'
103+
104+
testCompile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.30'
101105
}
102106
}

java-warc/src/test/java/com/github/bottomlessarchive/warc/test/TestUrlWarcReader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
import com.github.bottomlessarchive.warc.service.WarcRecordStreamFactory;
44
import com.github.bottomlessarchive.warc.service.content.response.domain.ResponseContentBlock;
55
import com.github.bottomlessarchive.warc.service.record.domain.WarcRecordType;
6+
import lombok.extern.slf4j.Slf4j;
67

78
import java.net.URL;
89

10+
@Slf4j
911
public class TestUrlWarcReader {
1012

1113
public static void main(final String... arg) throws Exception {
@@ -14,6 +16,6 @@ public static void main(final String... arg) throws Exception {
1416

1517
WarcRecordStreamFactory.<ResponseContentBlock>streamOf(warcUrl, WarcRecordType.RESPONSE)
1618
.map(entry -> entry.getContentBlock().getPayloadAsString())
17-
.forEach(System.out::println);
19+
.forEach(log::info);
1820
}
1921
}

0 commit comments

Comments
 (0)