diff --git a/pom.xml b/pom.xml
index 58e852a..72a5b5f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,36 +19,30 @@
-
- junit
- junit
- 4.11
- test
-
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ 5.7.0
+ test
+
-
-
- org.junit.jupiter
- junit-jupiter-api
- 5.7.0
- test
-
-
-
-
- org.junit.jupiter
- junit-jupiter-engine
- 5.7.0
- test
-
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
+ 5.7.0
+ test
+
+
+
+
+ org.junit.vintage
+ junit-vintage-engine
+ 5.7.0
+ test
+
-
-
- org.junit.jupiter
- junit-jupiter-params
- 5.7.0
- test
-
@@ -69,10 +63,14 @@
maven-compiler-plugin
3.8.0
+
+
+ 8
+
maven-surefire-plugin
- 2.22.1
+ 2.22.2
maven-jar-plugin
diff --git a/src/test/java/com/example/multiplyintegers/MultiplyIntegersTest.java b/src/test/java/com/example/multiplyintegers/MultiplyIntegersTest.java
index aad91cf..653cfd4 100644
--- a/src/test/java/com/example/multiplyintegers/MultiplyIntegersTest.java
+++ b/src/test/java/com/example/multiplyintegers/MultiplyIntegersTest.java
@@ -1,8 +1,8 @@
package com.example.multiplyintegers;
-import static org.junit.Assert.assertEquals;
-
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
public class MultiplyIntegersTest {
@@ -24,4 +24,8 @@ public void testThreeNumbers() {
assertEquals(210, result);
}
+ @Test
+ public void testNoNumber() {
+ assertThrows(IllegalArgumentException.class, () -> MultiplyIntegers.multiply());
+ }
}
diff --git a/target/classes/com/example/multiplyintegers/MultiplyIntegers.class b/target/classes/com/example/multiplyintegers/MultiplyIntegers.class
index 604e0ff..6a4f943 100644
Binary files a/target/classes/com/example/multiplyintegers/MultiplyIntegers.class and b/target/classes/com/example/multiplyintegers/MultiplyIntegers.class differ
diff --git a/target/multiplyintegers-1.0-SNAPSHOT.jar b/target/multiplyintegers-1.0-SNAPSHOT.jar
index f006ab0..8afc91d 100644
Binary files a/target/multiplyintegers-1.0-SNAPSHOT.jar and b/target/multiplyintegers-1.0-SNAPSHOT.jar differ
diff --git a/target/surefire-reports/TEST-com.example.multiplyintegers.MultiplyIntegersTest.xml b/target/surefire-reports/TEST-com.example.multiplyintegers.MultiplyIntegersTest.xml
new file mode 100644
index 0000000..7c2dadb
--- /dev/null
+++ b/target/surefire-reports/TEST-com.example.multiplyintegers.MultiplyIntegersTest.xml
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/surefire-reports/com.example.multiplyintegers.MultiplyIntegersTest.txt b/target/surefire-reports/com.example.multiplyintegers.MultiplyIntegersTest.txt
new file mode 100644
index 0000000..32d8fe6
--- /dev/null
+++ b/target/surefire-reports/com.example.multiplyintegers.MultiplyIntegersTest.txt
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+Test set: com.example.multiplyintegers.MultiplyIntegersTest
+-------------------------------------------------------------------------------
+Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 s - in com.example.multiplyintegers.MultiplyIntegersTest
diff --git a/target/test-classes/com/example/multiplyintegers/MultiplyIntegersTest.class b/target/test-classes/com/example/multiplyintegers/MultiplyIntegersTest.class
index 9091197..7629229 100644
Binary files a/target/test-classes/com/example/multiplyintegers/MultiplyIntegersTest.class and b/target/test-classes/com/example/multiplyintegers/MultiplyIntegersTest.class differ