This is an automated email from the ASF dual-hosted git repository.
doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git
The following commit(s) were added to refs/heads/master by this push:
new 30fedd1c EMPIREDB-444 ValueUtils: JUnit test fix:
ObjectUtils.getLong("JUnit") expects a NumberFormatException
30fedd1c is described below
commit 30fedd1c65aff360777dfbf9ee39422f4dd539a9
Author: Rainer Döbele <[email protected]>
AuthorDate: Fri Nov 1 13:32:25 2024 +0100
EMPIREDB-444
ValueUtils: JUnit test fix: ObjectUtils.getLong("JUnit") expects a
NumberFormatException
---
empire-db/src/test/java/org/apache/empire/commons/ObjectUtilsTest.java | 2 +-
pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/empire-db/src/test/java/org/apache/empire/commons/ObjectUtilsTest.java
b/empire-db/src/test/java/org/apache/empire/commons/ObjectUtilsTest.java
index f109cd22..99e371a2 100644
--- a/empire-db/src/test/java/org/apache/empire/commons/ObjectUtilsTest.java
+++ b/empire-db/src/test/java/org/apache/empire/commons/ObjectUtilsTest.java
@@ -204,7 +204,7 @@ public class ObjectUtilsTest
{
assertEquals(0, ObjectUtils.getLong(null));
assertEquals(0, ObjectUtils.getLong(""));
- assertEquals(0, ObjectUtils.getLong("JUnit"));
+ assertThrows(NumberFormatException.class, () ->
ObjectUtils.getLong("JUnit"));
assertEquals(456L, ObjectUtils.getLong("456"));
assertEquals(456L, ObjectUtils.getLong(Long.valueOf(456)));
diff --git a/pom.xml b/pom.xml
index 9a385a1a..3337cb2c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -356,7 +356,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>4.7</version>
+ <version>4.13.2</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>