Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

@ExpectMaxDelete

Jump to bottom
Jean Bisutti edited this page Nov 18, 2020 * 1 revision

With this annotation, the test will fail if the number of DELETE statements is greater than expected.

See also the ExpectDelete annotation.

Elements

Name Type Meaning Default value
value int Maximum number of deletes 0

Example

@ExpectMaxDelete(1)
@Test
public void execute_one_delete() {
//...
}

Clone this wiki locally