diff --git a/Java/build.gradle b/Java/build.gradle
index 8be8a631..cd9a2cec 100644
--- a/Java/build.gradle
+++ b/Java/build.gradle
@@ -10,6 +10,8 @@ dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.6.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
+ testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
+ testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.23.1'
}
group = 'com.gildedrose'
@@ -17,5 +19,13 @@ version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
test {
+ // Discover and execute JUnit4-based tests
+ useJUnit()
+
+ // Discover and execute TestNG-based tests
+ useTestNG()
+
+ // Discover and execute JUnit Platform-based (JUnit 5, JUnit Jupiter) tests
+ // Note that JUnit 5 has the ability to execute JUnit 4 tests as well
useJUnitPlatform()
}
diff --git a/Java/pom.xml b/Java/pom.xml
index 3bd6aff8..8e64e049 100644
--- a/Java/pom.xml
+++ b/Java/pom.xml
@@ -11,19 +11,32 @@
1.8
- 5.8.2
+ 5.9.0
3.1
3.0.0-M4
UTF-8
+
org.junit.jupiter
- junit-jupiter
+ junit-jupiter-engine
${junit.jupiter.version}
test
+
+ org.junit.jupiter
+ junit-jupiter-api
+ ${junit.jupiter.version}
+ test
+
+
+ org.assertj
+ assertj-core
+ 3.23.1
+ test
+