Class CountryTests
- java.lang.Object
-
- de.powerstat.validation.values.test.CountryTests
-
public class CountryTests extends Object
Country tests.
-
-
Constructor Summary
Constructors Constructor Description CountryTests()
Default constructor.
-
Method Summary
Modifier and Type Method Description void
countryIllegalParameters(String alpha2)
Test Country with illegal parameters.void
countryLength(String alpha2)
Test Country with country codes to short or long.void
countryOk0(String alpha2)
Test Country with valid country codes.void
getCountry()
Test get country code.void
testCompareTo()
Test compareTo.void
testEquals()
Test equals.void
testHashCode()
Test hash code.void
testToString()
Test toString.
-
-
-
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.
-
-