diff --git a/pom.xml b/pom.xml
index df7ab8d0..13b47124 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
4.0.0
edu.hm.hafner
codingstyle
- 2.1.1-SNAPSHOT
+ 2.2.0-SNAPSHOT
jar
@@ -62,6 +62,7 @@
1.3.2
+ 3.5.5
5.7.1
1.7.1
3.8.0
@@ -103,7 +104,6 @@
-Djava.util.logging.config.file=logging.properties
-
@@ -144,6 +144,12 @@
+
+ nl.jqno.equalsverifier
+ equalsverifier
+ ${equalsverifier.version}
+ test
+
org.junit.jupiter
junit-jupiter-api
diff --git a/src/test/java/edu/hm/hafner/util/FilteredLogTest.java b/src/test/java/edu/hm/hafner/util/FilteredLogTest.java
index b04b1247..23d7d07f 100644
--- a/src/test/java/edu/hm/hafner/util/FilteredLogTest.java
+++ b/src/test/java/edu/hm/hafner/util/FilteredLogTest.java
@@ -2,6 +2,8 @@
import org.junit.jupiter.api.Test;
+import nl.jqno.equalsverifier.EqualsVerifier;
+
import static edu.hm.hafner.util.assertions.Assertions.*;
/**
@@ -125,4 +127,9 @@ void shouldManuallyUseSerializationHelpers() {
assertThat(restored).isEqualTo(serializable);
}
+
+ @Test
+ void shouldObeyEqualsContract() {
+ EqualsVerifier.simple().forClass(FilteredLog.class).verify();
+ }
}
diff --git a/src/test/java/edu/hm/hafner/util/TreeStringBuilderTest.java b/src/test/java/edu/hm/hafner/util/TreeStringBuilderTest.java
index 21142ce5..dc89a10a 100644
--- a/src/test/java/edu/hm/hafner/util/TreeStringBuilderTest.java
+++ b/src/test/java/edu/hm/hafner/util/TreeStringBuilderTest.java
@@ -7,6 +7,8 @@
import org.junit.jupiter.api.Test;
+import nl.jqno.equalsverifier.EqualsVerifier;
+
import static org.assertj.core.api.Assertions.*;
/**
@@ -115,4 +117,12 @@ void shouldCreateRandomTreeStrings() {
assertThat(o.get(i)).hasToString(a.get(i));
}
}
+
+ @Test
+ void shouldObeyEqualsContract() {
+ EqualsVerifier.simple()
+ .withPrefabValues(TreeString.class, TreeString.valueOf("One"), TreeString.valueOf("Teo"))
+ .forClass(TreeString.class)
+ .verify();
+ }
}