public final class Mock extends Object
MockDataProvider
.Modifier and Type | Method and Description |
---|---|
static MockDataProvider |
of(int rows)
Create a new
MockDataProvider that always returns a single record
for all queries. |
static MockDataProvider |
of(MockResult... result)
Create a new
MockDataProvider that always returns the same mock
results for all queries. |
static MockDataProvider |
of(Record record)
Create a new
MockDataProvider that always returns a single record
for all queries. |
static MockDataProvider |
of(Result<?> result)
Create a new
MockDataProvider that always returns the same result
for all queries. |
public static final MockDataProvider of(int rows)
MockDataProvider
that always returns a single record
for all queries.public static final MockDataProvider of(Record record)
MockDataProvider
that always returns a single record
for all queries.public static final MockDataProvider of(Result<?> result)
MockDataProvider
that always returns the same result
for all queries.public static final MockDataProvider of(MockResult... result)
MockDataProvider
that always returns the same mock
results for all queries.Copyright © 2017. All Rights Reserved.