Period type.
| Access | Constructor and Description |
|---|---|
| protected | AbstractPeriodAssert(Period
the actual value to verify period, Class<?> the "self type" selfType)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public SELF | Returns: this assertion objectthe expected days value expectedDays)Verifies that the actual |
| public SELF | Returns: this assertion objectthe expected months value expectedMonths)Verifies that the actual |
| public SELF | Returns: this assertion objectthe expected years value expectedYears)Verifies that the actual |
| public SELF | Returns: this assertion objectVerifies that the actual |
| public SELF | Returns: this assertion objectVerifies that the actual |
| AbstractPeriodAssert | back to summary |
|---|---|
| protected AbstractPeriodAssert(Period period, Class<?> selfType) Creates a new | |
| hasDays | back to summary |
|---|---|
| public SELF hasDays(int expectedDays) Verifies that the actual Example :
| |
| hasMonths | back to summary |
|---|---|
| public SELF hasMonths(int expectedMonths) Verifies that the actual Example :
| |
| hasYears | back to summary |
|---|---|
| public SELF hasYears(int expectedYears) Verifies that the actual Example :
| |
| isNegative | back to summary |
|---|---|
| public SELF isNegative() Verifies that the actual Example :
| |
| isPositive | back to summary |
|---|---|
| public SELF isPositive() Verifies that the actual Example :
| |