Package | Description |
---|---|
org.jooq |
The
org.jooq package contains jOOQ's public API. |
org.jooq.impl |
The
org.jooq.impl package contains jOOQ's implementation classes. |
org.jooq.tools.jdbc |
The
org.jooq.tools.jdbc package contains compatibility classes
to bridge between JDBC 4.0 and JDBC 4.1. |
Modifier and Type | Method and Description |
---|---|
void |
DSLContext.mock(MockDataProvider provider,
MockRunnable mockable)
Run a
MockRunnable in the context of this DSLContext
's underlying Scope.configuration() 's, and of a
MockDataProvider . |
<T> T |
DSLContext.mockResult(MockDataProvider provider,
MockCallable<T> mockable)
Run a
MockRunnable in the context of this DSLContext
's underlying Scope.configuration() 's, and of a
MockDataProvider and return the mockable 's outcome. |
Modifier and Type | Method and Description |
---|---|
void |
DefaultDSLContext.mock(MockDataProvider provider,
MockRunnable mockable) |
<T> T |
DefaultDSLContext.mockResult(MockDataProvider provider,
MockCallable<T> mockable) |
Modifier and Type | Class and Description |
---|---|
class |
MockFileDatabase
A file-based
MockDataProvider . |
Modifier and Type | Method and Description |
---|---|
static MockDataProvider |
Mock.of(int rows)
Create a new
MockDataProvider that always returns a single record
for all queries. |
static MockDataProvider |
Mock.of(MockResult... result)
Create a new
MockDataProvider that always returns the same mock
results for all queries. |
static MockDataProvider |
Mock.of(Record record)
Create a new
MockDataProvider that always returns a single record
for all queries. |
static MockDataProvider |
Mock.of(Result<?> result)
Create a new
MockDataProvider that always returns the same result
for all queries. |
Constructor and Description |
---|
MockConfiguration(Configuration delegate,
MockDataProvider provider) |
MockConnection(MockDataProvider data) |
MockConnectionProvider(ConnectionProvider delegate,
MockDataProvider provider) |
MockStatement(MockConnection connection,
MockDataProvider data) |
MockStatement(MockConnection connection,
MockDataProvider data,
String sql) |
Copyright © 2019. All rights reserved.