Package io.outbox.testing
Class NoOpConnectionProvider
java.lang.Object
io.outbox.testing.NoOpConnectionProvider
- All Implemented Interfaces:
ConnectionProvider
ConnectionProvider that always returns null.
Sufficient for unit tests that use InMemoryOutboxStore,
which ignores the connection parameter.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NoOpConnectionProvider
public NoOpConnectionProvider()
-
-
Method Details
-
getConnection
Description copied from interface:ConnectionProviderObtains a new JDBC connection.- Specified by:
getConnectionin interfaceConnectionProvider- Returns:
- an open connection; the caller must close it
-