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 void
isNotAYear(long year)
Is not a year.void
isYear(long year)
Is year.void
testCompareTo()
Test compareTo.void
testEquals()
Test equals.void
testHashCode()
Test hash code.void
testToString()
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.
-
-