ExecuteUpdateResultCheckStyle and ResultCheckStyle are enums which basically just let you select a pre-implemented Expectation when you define custom SQL using @SqlXxxx. It seems to me that an enum is an inapt design here since they don’t let you customize things like the number of expected rows or the parameter position. I think we should change @SqlInsert and friends to just let you directly specify a class which implements Expectation, or possibly a simplified version of Expectation. I would then deprecate the enums and surrounding machinery. |