Inspectopedia
 
2024.3

Invalid transactional lifecycle method declaration

Warning
New
Last modified: 03 December 2024

Reports invalid transactional lifecycle method declarations annotated with @BeforeTransaction and @AfterTransaction in testing classes annotated as @Transactional.

Annotated methods must have no arguments and no return type.

Example: