-
public class EmptyMavericksViewMocks extends MavericksViewMocks<MockableMavericksView, Nothing>
-
-
Field Summary
Fields Modifier and Type Field Description private final List<MavericksMock<MockableMavericksView, out Void>>mocksprivate final List<List<MavericksMock<MockableMavericksView, out Void>>>mockGroups
-
Constructor Summary
Constructors Constructor Description EmptyMavericksViewMocks()
-
Method Summary
Modifier and Type Method Description List<MavericksMock<MockableMavericksView, out Void>>getMocks()A list of mocks to use when testing a view. List<List<MavericksMock<MockableMavericksView, out Void>>>getMockGroups()An optional breakdown of mocks to categorize them into groups. -
-
Method Detail
-
getMocks
List<MavericksMock<MockableMavericksView, out Void>> getMocks()
A list of mocks to use when testing a view. Each mock represents a unique state to be tested.
At least one of mocks or mockGroups must be implemented.
-
getMockGroups
List<List<MavericksMock<MockableMavericksView, out Void>>> getMockGroups()
An optional breakdown of mocks to categorize them into groups.
Groups allow splitting up a view with lots of mocks so they can be run in separate tests (better parallelization), with separate default arguments and states. This is useful for complicated views that want to share different default arguments or states with many mocks.
-
-
-
-