Package org.jboss.arquillian.persistence

Examples of org.jboss.arquillian.persistence.ShouldMatchDataSet


   }

   @Override
   public Collection<String> getResourceFileNames(Method testMethod)
   {
      ShouldMatchDataSet dataAnnotation = getResourceAnnotation(testMethod);
      String[] specifiedFileNames = dataAnnotation.value();
      if (specifiedFileNames.length == 0 || "".equals(specifiedFileNames[0].trim()))
      {
         return Arrays.asList(getDefaultFileName(testMethod));
      }
      return Arrays.asList(specifiedFileNames);
View Full Code Here


      if (persistenceExtensionFeatureResolver.shouldVerifyDataAfterTest())
      {
         final MetadataExtractor metadataExtractor = metadataExtractorInstance.get();
         final ExpectedDataSetProvider dataSetProvider = new ExpectedDataSetProvider(metadataExtractor, configurationInstance.get());
         final Method testMethod = afterPersistenceTest.getTestMethod();
         final ShouldMatchDataSet dataSetsToVerify = metadataExtractor.shouldMatchDataSet()
                                                                      .fetchFrom(testMethod);

         compareDataEvent.fire(new CompareData(afterPersistenceTest, dataSetProvider.getDescriptorsDefinedFor(testMethod), dataSetsToVerify.excludeColumns()));
      }

   }
View Full Code Here

   }

   @Override
   public Collection<String> getResourceFileNames(Method testMethod)
   {
      ShouldMatchDataSet dataAnnotation = getResourceAnnotation(testMethod);
      String[] specifiedFileNames = dataAnnotation.value();
      if (specifiedFileNames.length == 0 || "".equals(specifiedFileNames[0].trim()))
      {
         return Arrays.asList(getDefaultFileName(testMethod));
      }
      return Arrays.asList(specifiedFileNames);
View Full Code Here

      if (persistenceExtensionFeatureResolver.shouldVerifyDataAfterTest())
      {
         final MetadataExtractor metadataExtractor = metadataExtractorInstance.get();
         final ExpectedDataSetProvider dataSetProvider = new ExpectedDataSetProvider(metadataExtractor, configurationInstance.get());
         final Method testMethod = afterPersistenceTest.getTestMethod();
         final ShouldMatchDataSet dataSetsToVerify = metadataExtractor.shouldMatchDataSet()
                                                                      .fetchFrom(testMethod);
         final CustomColumnFilter customColumnFilter = metadataExtractor.using(CustomColumnFilter.class).fetchFrom(testMethod);
         final CompareDBUnitData compareDBUnitDataEvent = new CompareDBUnitData(dataSetProvider.getDescriptorsDefinedFor(testMethod), dataSetsToVerify.orderBy(), dataSetsToVerify.excludeColumns());
         if (customColumnFilter != null)
         {
               compareDBUnitDataEvent.add(customColumnFilter.value());
         }
         compareDataEvent.fire(compareDBUnitDataEvent);
View Full Code Here

      if (persistenceExtensionFeatureResolver.shouldVerifyDataAfterTest())
      {
         final MetadataExtractor metadataExtractor = metadataExtractorInstance.get();
         final ExpectedDataSetProvider dataSetProvider = new ExpectedDataSetProvider(metadataExtractor, configurationInstance.get());
         final Method testMethod = afterPersistenceTest.getTestMethod();
         final ShouldMatchDataSet dataSetsToVerify = metadataExtractor.shouldMatchDataSet()
                                                                      .fetchFrom(testMethod);

         compareDataEvent.fire(new CompareData(dataSetProvider.getDescriptorsDefinedFor(testMethod), dataSetsToVerify.orderBy(), dataSetsToVerify.excludeColumns()));
      }

   }
View Full Code Here

      if (persistenceExtensionFeatureResolver.shouldVerifyDataAfterTest())
      {
         final MetadataExtractor metadataExtractor = metadataExtractorInstance.get();
         final ExpectedDataSetProvider dataSetProvider = new ExpectedDataSetProvider(metadataExtractor, configurationInstance.get());
         final Method testMethod = afterPersistenceTest.getTestMethod();
         final ShouldMatchDataSet dataSetsToVerify = metadataExtractor.shouldMatchDataSet()
                                                                      .fetchFrom(testMethod);

         compareDataEvent.fire(new CompareData(dataSetProvider.getDescriptorsDefinedFor(testMethod), dataSetsToVerify.excludeColumns()));
      }

   }
View Full Code Here

   }

   @Override
   public Collection<String> getResourceFileNames(Method testMethod)
   {
      ShouldMatchDataSet dataAnnotation = getResourceAnnotation(testMethod);
      String[] specifiedFileNames = dataAnnotation.value();
      if (specifiedFileNames.length == 0 || "".equals(specifiedFileNames[0].trim()))
      {
         return Arrays.asList(getDefaultFileName(testMethod));
      }
      return Arrays.asList(specifiedFileNames);
View Full Code Here

TOP

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

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.