From 9e48697f3e429def57b1e29c7a7f67f316cbcd4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 16 Nov 2022 14:17:00 +0100 Subject: [PATCH] Continued: - renamed methods as left instance (country1) is being set class fields --- .../model/data/CountryDataObjectTest.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/org/mxchange/jcountry/model/data/CountryDataObjectTest.java b/test/org/mxchange/jcountry/model/data/CountryDataObjectTest.java index 9ecb754..35d41e2 100644 --- a/test/org/mxchange/jcountry/model/data/CountryDataObjectTest.java +++ b/test/org/mxchange/jcountry/model/data/CountryDataObjectTest.java @@ -292,7 +292,7 @@ public class CountryDataObjectTest { } @Test (description = "Tests if Country.equals() returns false when a field has been changed to an other value", dataProvider = "same-country-provider") - public void testEqualsDifferentAbroadDialPrefix (final Country country1, final Country country2) { + public void testCountry1EqualsDifferentAbroadDialPrefix (final Country country1, final Country country2) { // First change countryAbroadDialPrefix to something else country1.setCountryAbroadDialPrefix("++"); //NOI18N Assert.assertFalse(country1.equals(country2)); @@ -300,7 +300,7 @@ public class CountryDataObjectTest { } @Test (description = "Tests if Country.equals() returns false when a field has been changed to an other value", dataProvider = "same-country-provider") - public void testEqualsDifferentCountryCode (final Country country1, final Country country2) { + public void testCountry1EqualsDifferentCountryCode (final Country country1, final Country country2) { // Next is countryCode country1.setCountryCode("XX"); //NOI18N Assert.assertFalse(country1.equals(country2)); @@ -308,7 +308,7 @@ public class CountryDataObjectTest { } @Test (description = "Tests if Country.equals() returns false when a field has been changed to an other value", dataProvider = "same-country-provider") - public void testEqualsDifferentCountryId (final Country country1, final Country country2) { + public void testCountry1EqualsDifferentCountryId (final Country country1, final Country country2) { // Next is countryId country1.setCountryId(1l); //NOI18N Assert.assertFalse(country1.equals(country2)); @@ -316,7 +316,7 @@ public class CountryDataObjectTest { } @Test (description = "Tests if Country.equals() returns false when a field has been changed to an other value", dataProvider = "same-country-provider") - public void testEqualsDifferentExternalDialPrefix (final Country country1, final Country country2) { + public void testCountry1EqualsDifferentExternalDialPrefix (final Country country1, final Country country2) { // Next is countryExternalDialPrefix country1.setCountryExternalDialPrefix("00"); //NOI18N Assert.assertFalse(country1.equals(country2)); @@ -324,7 +324,7 @@ public class CountryDataObjectTest { } @Test (description = "Tests if Country.equals() returns false when a field has been changed to an other value", dataProvider = "same-country-provider") - public void testEqualsDifferentI18nKey (final Country country1, final Country country2) { + public void testCountry1EqualsDifferentI18nKey (final Country country1, final Country country2) { // Next is countryI18nKey country1.setCountryI18nKey("COUNTRY_XX"); //NOI18N Assert.assertFalse(country1.equals(country2)); @@ -332,7 +332,7 @@ public class CountryDataObjectTest { } @Test (description = "Tests if Country.equals() returns false when a field has been changed to an other value", dataProvider = "same-country-provider") - public void testEqualsDifferentIsLocalDialPrefixRequired (final Country country1, final Country country2) { + public void testCountry1EqualsDifferentIsLocalDialPrefixRequired (final Country country1, final Country country2) { // Next is countryId country1.setCountryIsLocalPrefixRequired(Boolean.FALSE); Assert.assertFalse(country1.equals(country2)); @@ -340,7 +340,7 @@ public class CountryDataObjectTest { } @Test (description = "Tests if Country.equals() returns false when a field has been changed to an other value", dataProvider = "same-country-provider") - public void testEqualsDifferentPhoneCode (final Country country1, final Country country2) { + public void testCountry1EqualsDifferentPhoneCode (final Country country1, final Country country2) { // Next is countryId country1.setCountryPhoneCode(COUNTRY_PHONE_CODE0); Assert.assertFalse(country1.equals(country2)); @@ -349,19 +349,19 @@ public class CountryDataObjectTest { @Test (description = "Tests if Country.equals() returns false when a null reference is provided") @SuppressWarnings ("ObjectEqualsNull") - public void testEqualsNullReference () { + public void testCountry1EqualsNullReference () { final Country country = new CountryData(); Assert.assertFalse(country.equals(null)); } @Test (description = "Tests if Country.equals() returns false when an other object is provided") - public void testEqualsOtherObject () { + public void testCountry1EqualsOtherObject () { final Country country = new CountryData(); Assert.assertFalse(country.equals(new Object())); } @Test (description = "Tests if Country.equals() returns true when same instance is provided") - public void testEqualsSameInstance () { + public void testCountry1EqualsSameInstance () { final Country country = new CountryData(); Assert.assertTrue(country.equals(country)); } -- 2.39.5