Package org.jboss.arquillian.persistence

Examples of org.jboss.arquillian.persistence.JpaCacheEviction


      executeCacheEviction(event, TestExecutionPhase.AFTER);
   }

   private void executeCacheEviction(TestEvent event, TestExecutionPhase currentPhase)
   {
      JpaCacheEviction jpaCacheEviction = obtainAnnotation(event);
      if (jpaCacheEviction != null)
      {
         final TestExecutionPhase phase = obtainPhase(jpaCacheEviction);
         if (phase.equals(currentPhase))
         {
View Full Code Here


      return entityManagers;
   }

   private JpaCacheEviction obtainAnnotation(TestEvent event)
   {
      final JpaCacheEviction classLevel = event.getTestClass().getAnnotation(JpaCacheEviction.class);
      final JpaCacheEviction methodLevel = event.getTestMethod().getAnnotation(JpaCacheEviction.class);
      if (methodLevel != null)
      {
         return methodLevel;
      }
      return classLevel;
View Full Code Here

      executeCacheEviction(event, TestExecutionPhase.AFTER);
   }

   private void executeCacheEviction(TestEvent event, TestExecutionPhase currentPhase)
   {
      JpaCacheEviction jpaCacheEviction = obtainAnnotation(event);
      if (jpaCacheEviction != null)
      {
         final TestExecutionPhase phase = obtainPhase(jpaCacheEviction);
         if (phase.equals(currentPhase))
         {
View Full Code Here

      return entityManagers;
   }

   private JpaCacheEviction obtainAnnotation(TestEvent event)
   {
      final JpaCacheEviction classLevel = event.getTestClass().getAnnotation(JpaCacheEviction.class);
      final JpaCacheEviction methodLevel = event.getTestMethod().getAnnotation(JpaCacheEviction.class);
      if (methodLevel != null)
      {
         return methodLevel;
      }
      return classLevel;
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.persistence.JpaCacheEviction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.