Skip to content

Commit

Permalink
Merge pull request #25 from rcardin/KFKESQ-14
Browse files Browse the repository at this point in the history
[KFKESQ-14] Bumped dependencies versions
  • Loading branch information
rcardin authored Sep 11, 2023
2 parents 7e99000 + 8c9d5e1 commit 8c7f12a
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 27 deletions.
5 changes: 1 addition & 4 deletions kafkaesque-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>in.rcard</groupId>
<artifactId>kafkaesque</artifactId>
<version>0.0.2-SNAPSHOT</version>
<version>0.1.0-SNAPSHOT</version>
</parent>

<artifactId>kafkaesque-core</artifactId>
Expand Down Expand Up @@ -87,19 +87,16 @@
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>kafka</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void assertingShouldThrowAnAssertionErrorIfTheConsumerAssertionFails() {
afterAllAssertions.asserting(
producerRecords -> assertThat(producerRecords).hasSize(1)))
.isInstanceOf(AssertionError.class)
.hasMessage("\n" + "Expected size:<1> but was:<0> in:\n" + "<[]>");
.hasMessage("\n" + "Expected size: 1 but was: 0 in:\n" + "[]");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,8 @@ void assertingShouldThrowAnAssertionErrorIfConsumingAMessageTakesTooMuch() {
void assertingShouldThrowAnAssertionErrorIfTheConsumerAssertionFails() {
assertThatThrownBy(() -> afterEachAssertions.asserting(pr -> assertThat(pr).isNull()))
.isInstanceOf(AssertionError.class)
.hasMessage(
"\n"
+ "Expecting:\n"
+ " <ProducerRecord(topic=topic, partition=null, headers=RecordHeaders(headers = [], isReadOnly = false), key=key, value=value, timestamp=null)>\n"
+ "to be equal to:\n"
+ " <null>\n"
+ "but was not.");
.hasMessage("\nexpected: null\n" +
" but was: ProducerRecord(topic=topic, partition=null, headers=RecordHeaders(headers = [], isReadOnly = false), key=key, value=value, timestamp=null)");
}

@Test
Expand Down
54 changes: 39 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>in.rcard</groupId>
<artifactId>kafkaesque</artifactId>
<version>0.0.2-SNAPSHOT</version>
<version>0.1.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Kafkaesque</name>
Expand All @@ -34,12 +34,18 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<kafka.version>2.5.0</kafka.version>
<junit.jupiter.version>5.6.2</junit.jupiter.version>
<testcontainers.version>1.16.0</testcontainers.version>
<typesafe.config.version>1.4.2</typesafe.config.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<kafka.version>3.5.0</kafka.version>
<junit.jupiter.version>5.10.0</junit.jupiter.version>
<testcontainers.version>1.19.0</testcontainers.version>
<typesafe.config.version>1.4.2</typesafe.config.version>
<commons-lang3.version>3.13.0</commons-lang3.version>
<reflections.version>0.10.2</reflections.version>
<hamcrest.version>2.2</hamcrest.version>
<awaitility.version>4.2.0</awaitility.version>
<mockito-core.version>5.5.0</mockito-core.version>
<assertj-core.version>3.24.2</assertj-core.version>
</properties>

<modules>
Expand All @@ -56,22 +62,22 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.11</version>
<version>${commons-lang3.version}</version>
</dependency>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.9.12</version>
<version>${reflections.version}</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<version>${hamcrest.version}</version>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
<version>4.0.3</version>
<version>${awaitility.version}</version>
</dependency>
<dependency>
<groupId>com.typesafe</groupId>
Expand All @@ -87,19 +93,37 @@
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.16.1</version>
<version>${assertj-core.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>3.4.6</version>
<version>${mockito-core.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>3.4.6</version>
<version>${mockito-core.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>kafka</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -113,8 +137,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>11</source>
<target>11</target>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
Expand All @@ -135,7 +159,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.1.2</version>
</plugin>
</plugins>
</pluginManagement>
Expand Down

0 comments on commit 8c7f12a

Please sign in to comment.