- java.lang.Object
-
- org.jooq.tools.jdbc.Mock
-
public final class Mock extends Object
Various utilities related toMockDataProvider
.- Author:
- Lukas Eder
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MockDataProvider
of(int rows)
Create a newMockDataProvider
that always returns a single record for all queries.static MockDataProvider
of(SQLException exception)
Create a newMockDataProvider
that always throws the same exception for all queries.static MockDataProvider
of(Record record)
Create a newMockDataProvider
that always returns a single record for all queries.static MockDataProvider
of(Result<?> result)
Create a newMockDataProvider
that always returns the same result for all queries.static MockDataProvider
of(MockResult... result)
Create a newMockDataProvider
that always returns the same mock results for all queries.
-
-
-
Method Detail
-
of
public static final MockDataProvider of(int rows)
Create a newMockDataProvider
that always returns a single record for all queries.
-
of
public static final MockDataProvider of(Record record)
Create a newMockDataProvider
that always returns a single record for all queries.
-
of
public static final MockDataProvider of(Result<?> result)
Create a newMockDataProvider
that always returns the same result for all queries.
-
of
public static final MockDataProvider of(MockResult... result)
Create a newMockDataProvider
that always returns the same mock results for all queries.
-
of
public static final MockDataProvider of(SQLException exception)
Create a newMockDataProvider
that always throws the same exception for all queries.
-
-