quickperf icon indicating copy to clipboard operation
quickperf copied to clipboard

Add a lenient mode to @ExpectJdbcBatching

Open jeanbisutti opened this issue 3 years ago • 1 comments

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.

jeanbisutti avatar Dec 18 '20 15:12 jeanbisutti

This looks great. However, I wonder whether true/false is enough or a numerical threshold would cover more use cases.

gmarziou avatar Dec 18 '20 17:12 gmarziou