From: Roland Häder Date: Sun, 22 Jan 2023 03:50:17 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4b378ff0233c3e058de242a9ef94a9235d8f90df;p=juser-core.git Continued: - fixed some issues reported by Netbeans' inspector --- 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());