Skip to content

MockUnitLocalDate

Andrei Ciobanu edited this page Aug 21, 2017 · 4 revisions

MockUnitLocalDate

The MockUnitLocalDate interface extends MockUnit<LocalDate>.

public interface `MockUnitLocalDate` extends MockUnit<LocaleDate>

This means that it "inherits" all the methods from MockUnit<LocaleDate>

The easiest way to obtain a MockUnitLocalDate is to call the localDates() method from MockNeat.

Methods that are particular to MockUnitInt:

Method Description
toUtilDate() Generates a MockUnit<java.util.Date> from a MockUnitLocalDate.

toUtilDate()

Translates the existing MockUnitLocalDate into a MockUnit<java.util.Date>.

Example:

Clone this wiki locally