Skip to content

MockUnitMonth

Andrei Ciobanu edited this page Jan 10, 2019 · 3 revisions

Important Note: The library the documentation has moved to www.mockneat.com. The information found on this wiki is quite outdated. Please check the new site.


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.

display()

Example:

String month = mock.months()
                    .before(JULY)
                    .display(TextStyle.FULL, Locale.CANADA)
                    .val();

//Possible Ouput: May