|
@@ -8,7 +8,7 @@ class DateParameterTest
|
|
|
private final DateParameter parameter = new DateParameter();
|
|
|
|
|
|
@Test
|
|
|
- public void constructor()
|
|
|
+ void constructor()
|
|
|
{
|
|
|
DateParameter dateParameter = new DateParameter(1989, (byte) 6, (byte) 1, (byte) 10, (byte) 52, (byte) 22);
|
|
|
|
|
@@ -21,78 +21,78 @@ class DateParameterTest
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void getDay()
|
|
|
+ void getDay()
|
|
|
{
|
|
|
Assertions.assertEquals(0, this.parameter.getDay());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void getHour()
|
|
|
+ void getHour()
|
|
|
{
|
|
|
Assertions.assertEquals(0, this.parameter.getHour());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void getMinute()
|
|
|
+ void getMinute()
|
|
|
{
|
|
|
Assertions.assertEquals(0, this.parameter.getMinute());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void getMonth()
|
|
|
+ void getMonth()
|
|
|
{
|
|
|
Assertions.assertEquals(0, this.parameter.getMonth());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void getSecond()
|
|
|
+ void getSecond()
|
|
|
{
|
|
|
Assertions.assertEquals(0, this.parameter.getSecond());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void getYear()
|
|
|
+ void getYear()
|
|
|
{
|
|
|
Assertions.assertEquals(0, this.parameter.getYear());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void setDay()
|
|
|
+ void setDay()
|
|
|
{
|
|
|
this.parameter.setDay((byte) 1);
|
|
|
Assertions.assertEquals(1, this.parameter.getDay());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void setHour()
|
|
|
+ void setHour()
|
|
|
{
|
|
|
this.parameter.setHour((byte) 10);
|
|
|
Assertions.assertEquals(10, this.parameter.getHour());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void setMinute()
|
|
|
+ void setMinute()
|
|
|
{
|
|
|
this.parameter.setMinute((byte) 52);
|
|
|
Assertions.assertEquals(52, this.parameter.getMinute());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void setMonth()
|
|
|
+ void setMonth()
|
|
|
{
|
|
|
this.parameter.setMonth((byte) 6);
|
|
|
Assertions.assertEquals(6, this.parameter.getMonth());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void setSecond()
|
|
|
+ void setSecond()
|
|
|
{
|
|
|
this.parameter.setSecond((byte) 22);
|
|
|
Assertions.assertEquals(22, this.parameter.getSecond());
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- public void setYear()
|
|
|
+ void setYear()
|
|
|
{
|
|
|
this.parameter.setYear(1989);
|
|
|
Assertions.assertEquals(1989, this.parameter.getYear());
|