-
-
Notifications
You must be signed in to change notification settings - Fork 47
MockUnitMonth
Andrei Ciobanu edited this page Aug 21, 2017
·
3 revisions
The MockUnitMonth interface extends MockUnit<Month>.
public interface MockUnitMonth extends MockUnit<Month>That means that it inherits all the methods from MockUnit<Month>.
The easiest way to obtain a MockUnitDays is to call the months() method from MockNeat.
Methods that are particular to MockUnitDays:
| Method | Description |
|---|---|
display() |
This generates a MockUnitString from MockUnitMonth by transforming the days of the week into localised strings. |
Example:
String month = mock.months()
.before(JULY)
.display(TextStyle.FULL, Locale.CANADA)
.val();
//Possible Ouput: MayUsing the library:
Real World Examples: