Skip to content

Commit

Permalink
Create v3
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Apr 3, 2024
1 parent 812114a commit efedaac
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ fluentKafkaVersion=2.12.1-SNAPSHOT
junitVersion=5.10.2
mockitoVersion=5.11.0
assertJVersion=3.25.3
log4jVersion=2.23.0
org.gradle.jvmargs=-Xmx2048m
2 changes: 1 addition & 1 deletion streams-bootstrap-picocli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
dependencies {
api(project(":streams-bootstrap"))
api(group = "info.picocli", name = "picocli", version = "4.7.5")
val log4jVersion = "2.23.0"
val log4jVersion: String by project
implementation(group = "org.apache.logging.log4j", name = "log4j-core", version = log4jVersion)
implementation(group = "org.apache.logging.log4j", name = "log4j-slf4j2-impl", version = log4jVersion)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ void shouldClean() throws InterruptedException {
.as("Output topic is deleted")
.isFalse();

final List<KeyValue<String, Long>> entriesTwice = expectedValues.stream()
.flatMap(entry -> Stream.of(entry, entry))
.collect(Collectors.toList());
this.runAndAssertContent(entriesTwice, "All entries are twice in the input topic after the 2nd run", app);
this.runAndAssertContent(expectedValues, "All entries are once in the input topic after the 2nd run", app);
}
}

Expand Down
16 changes: 16 additions & 0 deletions streams-bootstrap-picocli/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
</Appenders>
<Loggers>
<Logger additivity="false" level="debug" name="com.bakdata">
<AppenderRef ref="Console"/>
</Logger>
<Root level="info">
<AppenderRef ref="Console"/>
</Root>
</Loggers>
</Configuration>
2 changes: 2 additions & 0 deletions streams-bootstrap/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ dependencies {
testImplementation(group = "net.mguenther.kafka", name = "kafka-junit", version = kafkaJunitVersion) {
exclude(group = "org.slf4j", module = "slf4j-log4j12")
}
val log4jVersion: String by project
testImplementation(group = "org.apache.logging.log4j", name = "log4j-slf4j2-impl", version = log4jVersion)
}

tasks.withType<Test> {
Expand Down

0 comments on commit efedaac

Please sign in to comment.