@Test public void should_evict_cache_before_test_method() throws Exception { jpaCacheEvictionHandler.onBeforeTestMethod(createBeforeEvent(new StubTestCaseWithAnnotation())); assertThat(tmpLookupName).isEqualTo("defaultEntityManager"); assertThat(tmpCacheEvicted).isTrue(); tmpLookupName = null; tmpCacheEvicted = false; jpaCacheEvictionHandler.onBeforeTestMethod(createBeforeEvent(new StubTestCaseWithInheritedAnnotation())); assertThat(tmpLookupName).isEqualTo("defaultEntityManager"); assertThat(tmpCacheEvicted).isTrue(); }
public final void onBeforeTestMethod(@Observes(precedence = 15) BeforePersistenceTest event) { executeCacheEviction(event, TestExecutionPhase.BEFORE); }
JpaCacheEvictionHandler { public final void onBeforeTestMethod(@Observes(precedence = 15) BeforePersistenceTest event) { executeCacheEviction(event, TestExecutionPhase.BEFORE); } }
JpaCacheEvictionHandler { public final void onBeforeTestMethod(@Observes(precedence = 15) BeforePersistenceTest event) { executeCacheEviction(event, TestExecutionPhase.BEFORE); } JpaCacheEvictionHandler();  JpaCacheEvictionHandler(Instance<Context> ctx, JpaCacheEvictionConfiguration jpaCacheEvictionConfiguration); }
JpaCacheEvictionHandler { public final void onBeforeTestMethod(@Observes(precedence = 15) BeforePersistenceTest event) { executeCacheEviction(event, TestExecutionPhase.BEFORE); } 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 onBeforeTestMethod(@Observes(precedence = 15) BeforePersistenceTest event) { executeCacheEviction(event, TestExecutionPhase.BEFORE); } 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);  }