Class CountryTests


  • public class CountryTests
    extends Object
    Country tests.
    • Constructor Detail

      • CountryTests

        public CountryTests()
        Default constructor.
    • Method Detail

      • countryOk0

        @ParameterizedTest
        @ValueSource(strings="DE")
        public void countryOk0​(String alpha2)
        Test Country with valid country codes.
        Parameters:
        alpha2 - Alpha-2 code
      • countryLength

        @ParameterizedTest
        @ValueSource(strings={"D","DEA"})
        public void countryLength​(String alpha2)
        Test Country with country codes to short or long.
        Parameters:
        alpha2 - Alpha-2 codes
      • countryIllegalParameters

        @ParameterizedTest
        @ValueSource(strings={"D~","ZZ"})
        public void countryIllegalParameters​(String alpha2)
        Test Country with illegal parameters.
        Parameters:
        alpha2 - Alpha-2 code
      • getCountry

        @Test
        public void getCountry()
        Test get country code.
      • testHashCode

        @Test
        public void testHashCode()
        Test hash code.
      • testEquals

        @Test
        public void testEquals()
        Test equals.
      • testToString

        @Test
        public void testToString()
        Test toString.
      • testCompareTo

        @Test
        public void testCompareTo()
        Test compareTo.