Uses of Interface
org.jooq.tools.jdbc.MockDataProvider
Package
Description
This package contains jOOQ's public API.
This package contains jOOQ's implementation classes.
This package contains compatibility classes to bridge between JDBC 4.0 and
JDBC 4.1.
-
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 MockDataProvider
Mock.of(int rows)
Create a newMockDataProvider
that always returns a single record for all queries.static MockDataProvider
Mock.of(SQLException exception)
Create a newMockDataProvider
that always throws the same exception for all queries.static MockDataProvider
Create a newMockDataProvider
that always returns a single record for all queries.static MockDataProvider
Create a newMockDataProvider
that always returns the same result for all queries.static MockDataProvider
Mock.of(MockResult... result)
Create a newMockDataProvider
that always returns the same mock results for all queries.ModifierConstructorDescriptionMockConfiguration(Configuration delegate, MockDataProvider provider)
MockConnection(MockDataProvider data)
MockConnectionProvider(ConnectionProvider delegate, MockDataProvider provider)
MockStatement(MockConnection connection, MockDataProvider data)
MockStatement(MockConnection connection, MockDataProvider data, String sql)