Project

General

Profile

Actions

Feature #2485

closed

Test: clear cache automatically in transactional integration tests

Added by Radek Tomiška over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Low
Assignee:
Radek Tomiška
Category:
Test
Target version:
Start date:
09/11/2020
Due date:
% Done:

100%

Estimated time:
Owner:

Description

When integration test is @Transactional, then automatic rollback occurs for all data persisted in database, but cache is not evicted - e.g. when form definition is created or updated, then other test can fail because cache is invalid.
If integration test (AbstractIntegrationTest) is @Transactional (+ @Rollback(true) by default), then clear all caches automatically.

Actions #1

Updated by Radek Tomiška over 4 years ago

  • Description updated (diff)
Actions #2

Updated by Radek Tomiška over 4 years ago

  • Status changed from New to Needs feedback
  • Assignee changed from Radek Tomiška to Vít Švanda
  • Target version set to 10.6.0
  • % Done changed from 0 to 90
Actions #3

Updated by Vít Švanda over 4 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Vít Švanda to Radek Tomiška
  • % Done changed from 90 to 100

I did reivew. In so many refactoring changes it was hard for me to find the evic cache, but I managed it :-). LGTM

Actions #4

Updated by Radek Tomiška about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF