Hello,
I would like to know if there are patterns or tips for unit testing spring data methods using the @Query annotation such as the one below (taken from a "spring data" dao interface):
By unit testing I mean using some sort of mock maybe but not hitting the database of course.Code:@Modifying @Transactional @Query("UPDATE Account a SET a.accountActivated = true WHERE a.accountToken = ?1") int reactivateAccountFromToken(String accountToken);
Regards,
Julien.


Reply With Quote
