Class YearsTests
- java.lang.Object
-
- de.powerstat.validation.values.test.YearsTests
-
public class YearsTests extends Object
Years tests.
-
-
Constructor Summary
Constructors Constructor Description YearsTests()Default constructor.
-
Method Summary
Modifier and Type Method Description voidisNotAYears(long years)Is not a years.voidisYears(long years)Is years.voidtestCompareTo()Test compareTo.voidtestEquals()Test equals.voidtestHashCode()Test hash code.voidtestToString()Test toString.
-
-
-
Method Detail
-
isYears
@ParameterizedTest @ValueSource(longs={0L,20L}) public void isYears(long years)Is years.- Parameters:
years- Years
-
isNotAYears
@ParameterizedTest @ValueSource(longs=-1L) public void isNotAYears(long years)
Is not a years.- Parameters:
years- Years
-
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.
-
-