From 4b378ff0233c3e058de242a9ef94a9235d8f90df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 22 Jan 2023 04:50:17 +0100 Subject: [PATCH] Continued: - fixed some issues reported by Netbeans' inspector --- test/org/mxchange/jusercore/model/user/LoginUserTest.java | 2 +- test/org/mxchange/jusercore/model/utils/UserUtilsTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/org/mxchange/jusercore/model/user/LoginUserTest.java b/test/org/mxchange/jusercore/model/user/LoginUserTest.java index efa6eba..7eb3d54 100644 --- a/test/org/mxchange/jusercore/model/user/LoginUserTest.java +++ b/test/org/mxchange/jusercore/model/user/LoginUserTest.java @@ -514,7 +514,7 @@ public class LoginUserTest { @Test (description = "Tests method User.equals() with same User instance", dataProvider = "one-user-provider") public void testUserEqualsNullUserInstance (final User user) { // Should always be false - Assert.assertFalse(user.equals(null)); + Assert.assertFalse(user == null); } @Test (description = "Tests method User.equals() with same User instance", dataProvider = "one-user-provider") diff --git a/test/org/mxchange/jusercore/model/utils/UserUtilsTest.java b/test/org/mxchange/jusercore/model/utils/UserUtilsTest.java index ae2f39d..32774f4 100644 --- a/test/org/mxchange/jusercore/model/utils/UserUtilsTest.java +++ b/test/org/mxchange/jusercore/model/utils/UserUtilsTest.java @@ -615,7 +615,7 @@ public class UserUtilsTest { contact.setContactHouseNumber(UserTestData.CONTACT_HOUSE_NUMBER); contact.setContactHouseNumberExtension("a"); //NOI18N contact.setContactCity("Chicago"); //NOI18N - contact.setContactZipCode(12345); + contact.setContactZipCode(12_345); contact.setContactBirthday(new Date()); contact.setContactEmailAddress("bob@company.com"); //NOI18N contact.setContactEntryUpdated(new Date()); -- 2.39.5