Uses of Interface
org.jooq.tools.jdbc.MockDataProvider
Package
Description
This package contains jOOQ's public API.
This package contains jOOQ's implementation classes.
JDBC tooling.
-
Uses of MockDataProvider in org.jooq
Modifier and TypeMethodDescriptionvoid
DSLContext.mock
(MockDataProvider provider, MockRunnable mockable) Run aMockRunnable
in the context of thisDSLContext
's underlyingScope.configuration()
's, and of aMockDataProvider
.<T> T
DSLContext.mockResult
(MockDataProvider provider, MockCallable<T> mockable) Run aMockRunnable
in the context of thisDSLContext
's underlyingScope.configuration()
's, and of aMockDataProvider
and return themockable
's outcome. -
Uses of MockDataProvider in org.jooq.impl
Modifier and TypeMethodDescriptionvoid
DefaultDSLContext.mock
(MockDataProvider provider, MockRunnable mockable) <T> T
DefaultDSLContext.mockResult
(MockDataProvider provider, MockCallable<T> mockable) -
Uses of MockDataProvider in org.jooq.tools.jdbc
Modifier and TypeMethodDescriptionstatic final MockDataProvider
Mock.of
(int rows) Create a newMockDataProvider
that always returns a single record for all queries.static final MockDataProvider
Mock.of
(SQLException exception) Create a newMockDataProvider
that always throws the same exception for all queries.static final MockDataProvider
Create a newMockDataProvider
that always returns a single record for all queries.static final MockDataProvider
Create a newMockDataProvider
that always returns the same result for all queries.static final MockDataProvider
Mock.of
(MockResult... result) Create a newMockDataProvider
that always returns the same mock results for all queries.ModifierConstructorDescriptionMockConfiguration
(Configuration delegate, MockDataProvider provider) MockConnectionProvider
(ConnectionProvider delegate, MockDataProvider provider) MockStatement
(MockConnection connection, MockDataProvider data) MockStatement
(MockConnection connection, MockDataProvider data, String sql)