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 voidisMonth(int month)Is month.voidisNotAMonth(int month)Is not a month.voidtestCompareTo()Test compareTo.voidtestEquals()Test equals.voidtestHashCode()Test hash code.voidtestToString()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.
-
-