Class YearTests
- java.lang.Object
-
- de.powerstat.validation.values.test.YearTests
-
public class YearTests extends Object
Year tests.
-
-
Constructor Summary
Constructors Constructor Description YearTests()Default constructor.
-
Method Summary
Modifier and Type Method Description voidisNotAYear(long year)Is not a year.voidisYear(long year)Is year.voidtestCompareTo()Test compareTo.voidtestEquals()Test equals.voidtestHashCode()Test hash code.voidtestToString()Test toString.
-
-
-
Method Detail
-
isYear
@ParameterizedTest @ValueSource(longs={-1L,1L,2020L}) public void isYear(long year)Is year.- Parameters:
year- Year
-
isNotAYear
@ParameterizedTest @ValueSource(longs=0L) public void isNotAYear(long year)
Is not a year.- Parameters:
year- Year
-
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.
-
-