Skip to content

Add a lenient mode to @ExpectJdbcBatching #144

Open
@jeanbisutti

Description

@jeanbisutti

Today, @ExpectJdbcBatching makes a test fails if INSERT, UPDATE or DELETE statements are executed without JDBC batching.

This issue follows #132. It aims to add a boolean lenient element to ExpectJdbcbatching annotation. The default value will be false.

With a true value, the test will not fail if the batch size would be less than two with JDBC batching. For example, if just one INSERT is executed without JDBC batching, the test will not fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✨ featureNew feature or requestsqlSQL annotations

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions