Class MonthTests
- java.lang.Object
-
- de.powerstat.validation.values.test.MonthTests
-
public class MonthTests extends Object
Month tests.
-
-
Constructor Summary
Constructors Constructor Description MonthTests()
Default constructor.
-
Method Summary
Modifier and Type Method Description void
isMonth(int month)
Is month.void
isNotAMonth(int month)
Is not a month.void
testCompareTo()
Test compareTo.void
testEquals()
Test equals.void
testHashCode()
Test hash code.void
testToString()
Test toString.
-
-
-
Method Detail
-
isMonth
@ParameterizedTest @ValueSource(ints={1,12}) public void isMonth(int month)
Is month.- Parameters:
month
- Month
-
isNotAMonth
@ParameterizedTest @ValueSource(ints={0,13}) public void isNotAMonth(int month)
Is not a month.- Parameters:
month
- Month
-
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.
-
-