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