}
@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));
}
@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));
}
@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));
}
@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));
}
@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));
}
@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));
}
@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));
@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));
}