@Test public void should_evict_cache_after_test_method() throws Exception { jpaCacheEvictionHandler.onAfterTestMethod(createAfterEvent(new StubTestCaseWithModifiedAnnotation())); assertThat(tmpLookupName).isEqualTo("customEntityManager"); assertThat(tmpCacheEvicted).isTrue(); }
public final void onAfterTestMethod(@Observes(precedence = 45) AfterPersistenceTest event) { executeCacheEviction(event, TestExecutionPhase.AFTER); }
JpaCacheEvictionHandler { public final void onAfterTestMethod(@Observes(precedence = 45) AfterPersistenceTest event) { executeCacheEviction(event, TestExecutionPhase.AFTER); } }
JpaCacheEvictionHandler { public final void onAfterTestMethod(@Observes(precedence = 45) AfterPersistenceTest event) { executeCacheEviction(event, TestExecutionPhase.AFTER); } JpaCacheEvictionHandler();  JpaCacheEvictionHandler(Instance<Context> ctx, JpaCacheEvictionConfiguration jpaCacheEvictionConfiguration); }
JpaCacheEvictionHandler { public final void onAfterTestMethod(@Observes(precedence = 45) AfterPersistenceTest event) { executeCacheEviction(event, TestExecutionPhase.AFTER); } JpaCacheEvictionHandler();  JpaCacheEvictionHandler(Instance<Context> ctx, JpaCacheEvictionConfiguration jpaCacheEvictionConfiguration); final void initalizeCacheConfiguration(@Observes InitializeConfiguration event); final void onBeforeTestMethod(@Observes(precedence = 15) BeforePersistenceTest event); final void onAfterTestMethod(@Observes(precedence = 45) AfterPersistenceTest event); EntityManager lookup(String emJndiName); }
JpaCacheEvictionHandler { public final void onAfterTestMethod(@Observes(precedence = 45) AfterPersistenceTest event) { executeCacheEviction(event, TestExecutionPhase.AFTER); } JpaCacheEvictionHandler();  JpaCacheEvictionHandler(Instance<Context> ctx, JpaCacheEvictionConfiguration jpaCacheEvictionConfiguration); final void initalizeCacheConfiguration(@Observes InitializeConfiguration event); final void onBeforeTestMethod(@Observes(precedence = 15) BeforePersistenceTest event); final void onAfterTestMethod(@Observes(precedence = 45) AfterPersistenceTest event); EntityManager lookup(String emJndiName);  }