Package de.hybris.platform.servicelayer
Class ServicelayerTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
AbstractAsSynchronizationTest,AbstractBundleRuleIDPrepareInterceptorIntegrationTest,AbstractCMSVersionIntegrationTest,AbstractControllerIntegrationIntegrationTest,AbstractCouponAwareCartIT,AbstractCouponWebServicesTest,AbstractFindTaxValuesStrategyTest,AbstractGroupAssignmentPrepareInterceptorIntegrationTest,AbstractIntegrationTest,AbstractItemImportFacadeIntegrationTest,AbstractJobIntegrationTest,AbstractOrderManagementTest,AbstractPermissionsWebServicesTest,AbstractPlatformRuleEngineServiceIT,AbstractProcessDemoTest,AbstractRuleEngineServicesTest,AbstractVJDBCServicelayerTransactionalTest,AbstractVoucherTest,AbstractWebServicesTest,AbstractYFormFacadeKeywords,AcceleratorCmsSystemSetupIntegrationTest,AcceleratorPromotionsTest,AfterSessionUserChangeListenerTest,AsCategoryAwareSearchConfigurationModelTest,AsSearchConfigurationModelTest,AsSimpleSearchConfigurationModelTest,B2BCommerceCostCenterServiceIntegrationTest,B2BCustomerListSearchStrategyIntegrationTest,B2BIntegrationTest,B2BRegistrationWorkflowIntegrationTest,BackofficeUserServiceIntegrationTest,BaseAcceleratorIntegrationTest,BaseCommerceBaseTest,BasecommerceTest,BaseContextIntegrationTest,BaseIntegrationTest,BaseOrderManagementWebservicesIntegrationTest,BaseWebservicesIntegrationTest,BaseWebServiceTest,BatchIntegrationTest,BeansDefinitionImportParserTest,BulkyTestDataLoader,BundledCommerceCartServiceTest,BundleOrderEntryRemoveableCheckerNestedIntegrationTest,BundleSelectionCriteriaIDPrepareInterceptorIntegrationTest,BundleTemplatePrepareInterceptorIntegrationTest,BundleTemplateRemoveInterceptorIntegrationTest,BundleTemplateStatusIDPrepareInterceptorIntegrationTest,CalculatePersonalizationForUserActionIntegrationTest,CalculatePersonalizationForUserActionTest,CartRaoPopulatorTest,CartSessionCurrencyChangeTest,CatalogAwareEurope1PriceFactoryTest,CatalogSystemSetupTest,CatalogVersionSynchronizationTest,CategoryPerformanceTest,CircularReferencesPrefetchAllTest,ClassAttributePropertyDescriptorTest,ClassAttrWithDotsTest,ClassificationAttributeTranslatorIntegrationTest,ClassificationClassesResolverIntegrationTest,ClassificationTypeSystemSheetPopulatorIntegrationTest,CleanupDroolsRulesCronjobIT,CleanupDroolsRulesQueryIT,CloneAddressTest,ClonePaymentInfoTest,CMSItemRemoveIntegrationTest,CMSPageLockingServiceTest,CMSRelationInitDefaultsInterceptorIntegrationTest,CockpitSavedParameterValueModelTest,CodeGenerationConfigurationWebServicesTest,ConcurrentPromotionUpdateTest,ConditionalAuditCartTest,ConditionalAuditTxTest,ConfigurableBundleSelectionCriteriaIDPrepareInterceptorIntegrationTest,ConfigurableBundleTemplatePrepareInterceptorIntegrationTest,ConflictingItemsImportTest,ConstraintGroupValidationOnSaveIT,ContentSlotForPageInitDefaultsInterceptorTest,ContentSlotForTemplateInitDefaultsInterceptorTest,CouponCodeGenerationWebServicesTest,CouponRedemptionWebServicesTest,CPQServiceLayerTest,CronJobHistoryCleanupIntegrationTest,CustomersWithOrdersRetentionCronJobIntegrationTest,CustomersWithoutOrdersRetentionCronJobIntegrationTest,CxCmsComponentContainerModelVisitorIntegrationTest,CxContentSlotModelToDataRenderingPopulatorIntegrationTest,CxPersonalizationProcessCleanupCronJobIntegrationTest,CxPromotionActionIntegrationTest,CxPromotionEvaluationIntegrationTest,DefaultB2BApprovalProcessFacadeIntegrationTest,DefaultB2BApprovalProcessLookUpStrategyIntegrationTest,DefaultB2BApprovalProcessServiceIntegrationTest,DefaultB2BApproverServiceIntegrationTest,DefaultB2BRegistrationDaoIntegrationTest,DefaultB2BRegistrationServiceIntegrationTest,DefaultBaseSiteFacadeIntegrationTest,DefaultBaseStoreFacadeIntegrationTest,DefaultBundleCommerceRuleServiceIntegrationTest,DefaultBundleRuleServiceNestedIntegrationTest,DefaultBundleTemplateDaoIntegrationTest,DefaultBundleTemplateServiceCSIntegrationTest,DefaultBundleTemplateServiceIntegrationTest,DefaultBundleTemplateServiceNestedIntegrationTest,DefaultCartEntryActionFacadeIntegrationTest,DefaultCartEntryDaoIntegrationTest,DefaultChangeProductPriceBundleRuleDaoIntegrationTest,DefaultCMSAdminRestrictionServiceIntegrationTest,DefaultCMSComponentServiceIntegrationTest,DefaultCMSContentSlotServiceIntegrationTest,DefaultCMSRestrictionServiceIntegrationTest,DefaultCockpitCollectionServiceIntegrationTest,DefaultCockpitConfigurationServiceIntegrationTest,DefaultCommerceCartServiceIntegrationTest,DefaultCommerceCartServiceRestorationTest,DefaultCommerceConsentServiceIntegrationTest,DefaultCommercePriceServiceIntTest,DefaultCommerceQuoteDaoTest,DefaultCommerceQuoteServiceIntegrationTest,DefaultCommerceSaveCartServiceIntegrationTest,DefaultConsentDaoIntegrationTest,DefaultConsentFacadeIntegrationTest,DefaultConsentPrepareInterceptorTest,DefaultConsentTemplateDaoIntegrationTest,DefaultCountryDaoTest,DefaultCurrencyDaoTest,DefaultCustomerAccountDaoIntegrationTest,DefaultCustomerDaoTest,DefaultCxActionResultServiceIntegrationTest,DefaultCxIntegrationMappingServiceIntegrationTest,DefaultCxPersonalizationBusinessProcessDaoTest,DefaultCxServiceCmsIntegrationTest,DefaultCxUpdateSegmentStrategyIntegrationTest,DefaultDisableProductBundleRuleDaoIntegrationTest,DefaultDroolsKIEModuleMediaDaoIT,DefaultEmailTemplateServiceIntegrationTest,DefaultEntitlementDaoIntegrationTest,DefaultEntitlementIntegrationTest,DefaultEntryGroupServiceIntegrationTest,DefaultExcelWorkbookEntriesServiceIntegrationTest,DefaultExportDataFactoryIntegrationTest,DefaultExpressCheckoutIntegrationCheckoutTest,DefaultExternalTaxesServiceIntegrationTest,DefaultFacetSortProviderTest,DefaultFlexibleCMSItemSearchServiceIntegrationTest,DefaultFormatFactoryIntegrationTest,DefaultFutureStockDaoTest,DefaultImportProcessorTest,DefaultImportServiceIntegrationTest,DefaultImportServiceInvalidImpexIntegrationTest,DefaultImportServiceMediaImportIntegrationTest,DefaultKieModuleServiceIT,DefaultLabelServiceIntegrationTest,DefaultLanguageDaoTest,DefaultPermissionsFacadeIntegrationTest,DefaultPointOfServiceDaoIT,DefaultProductCarouselFacadeIntegrationTest,DefaultProductExportFacadeIntegrationTest,DefaultProductFacadeIntegrationTest,DefaultPunchOutServiceIntegrationTest,DefaultRegionDaoTest,DefaultRelatedPageRejectionServiceIntegrationTest,DefaultRequiredAttributesFactoryIntegrationTest,DefaultReturnRequestDaoTest,DefaultRuleBasedPromotionsContextValidatorIT,DefaultRuleEngineContextDaoIT,DefaultRuleEngineContextForCatalogVersionsFinderStrategyIT,DefaultRuleEngineCronJobDAOTest,DefaultRuleEngineJobServiceTest,DefaultRuleEngineSpliteratorStrategyConfigurationIT,DefaultRuleEngineSystemSetupIntegrationTest,DefaultRuleGroupDaoIT,DefaultRulesModuleDaoIT,DefaultSearchRestrictionServiceDemoTest,DefaultSearchRestrictionServiceIntegrationTest,DefaultSetupImpexServiceTest,DefaultSetupSyncJobServiceTest,DefaultStoreFinderFacadeIntegrationTest,DefaultUserFacadeIntegrationTest,DefaultWarehouseDaoTest,DefaultWorkflowActionDaoTest,DefaultYFormFacadeTest,DefaultYFormServiceTest,DiscountRowRepositoryTest,DynamicAttributesOrderStatusDisplayTest,DynamicAttributestTest,DynamicAttributeTests,ExcelAttributeDescriptorAttributeIntegrationTest,ExcelGenericReferenceTranslatorIntegrationTest,ExcelGenericReferenceValidatorIntegrationTest,ExcelIntegrationTest,ExportDataTest,ExternalImportKeyTest,FeatureGenericQueryConditionTranslatorIntegrationTest,FindPriceValuesStrategySLOnlyTest,FraudCheckIntegrationTest,GenericCouponWebServicesTest,GeoWebServiceWrapperTest,HybrisPropertiesWebApplicationContextInitializerTest,ImpexAfterEachTest,ImpexRelationChunkingTest,ImportValidationModesTest,InboundRequestRetentionCleanupIntegrationTest,InboundRetentionRulesIntegrationTest,ItemCopyCreatorTest,ItemModelCloneCreatorTest,ItemModelTest,KeywordDaoTest,LocalizationTestTemplate,LocalizedFeatureWithFallbackIntegrationTest,LocalViewExecutorIntegrationTest,MarketplaceSetupSyncJobServiceTest,MediaAttributePredicateIntegrationTest,MediaContainerAttributePredicateIntegrationTest,MediaEncodingIntegrationTest,ModuleSwapCompletedListenerIT,MultiCodeCouponValidationIT,NavigationNodeRemoveInterceptorIntegrationTest,OAuthAuthorizationWebServiceTest,ODataAdvancedPersistenceFacadeIntegrationTest,ODataBatchPersistenceFacadeIntegrationTest,ODataFacadeLegacyPersistHooksIntegrationTest,ODataProcessorIntegrationTest,ODataSchemaGenerationFacadeIntegrationTest,OneTimeChargeEntryValidationInterceptorIntegrationTest,OpeningScheduleModelUniqunessIntegrationTest,OpeningSchedulePopulatorIntegrationTest,OrderConcurrencyTest,OrderEntriesArrangementTest,OrderPrepareInterceptorIntegrationTest,OrderSchedulingIntegrationTest,OrdersRetentionCronJobIntegrationTest,OutboundRequestRetentionCleanupIntegrationTest,OutboundRetentionRulesIntegrationTest,PaymentIntegrationTest,PaymentTest,PrepareCurrencyInterceptorTest,PreviewPersonalizationWebServicesTest,PriceRowChannelTest,ProductDaoTest,ProductEntitlementInitDefaultsInterceptorTest,ProductEntitlementIntegrationTest,ProductFeatureImpExTest,ProductReferencesDaoTest,PromotionEngineServiceBaseTestBase,RankingCMSRestrictionServiceIntegrationTest,RefreshModelConverterAdditionalTest,RefundServiceTest,RelationImportIntegrationTest,RemoveCurrencyInterceptorTest,RemoveLanguageIntercetorTest,RetentionCleanupIntegrationTest,RetentionRulesIntegrationTest,RetrieveChannelStrategyTest,RetrieveChannelStrategyTestSL,ReturnsServiceTest,RuleModuleCatalogVersionAttributeHandlerIT,RuleVersioningIT,RuleVersioningIT,SampleWebServicesTest,SAPLoggingConfigChangeListenerTest,SAPLoggingProxyListenerTest,SearchRestrictionTest,ServiceLayerSynchronizationPersistenceAdapterTest,ServicelayerTransactionalTest,SimpleBannerComponentTest,SimpleResponsiveBannerComponentTest,SingleCodeCouponValidationIT,SpringPrototypePerfTest,StockServiceTest,StoreFinderStockFacadeIntegrationTest,SyncDiscountRowsTest,SynchronizationMediaTest,SynchronizeCollectionsTest,SyncWithSessionContextTest,TaxIntegrationTest,TaxValuesCountTest,TestURLCOMInjectionSanitizer,TicketsRetentionCronJobIntegrationTest,UniqueOptionalAttributeTest,UntaxedEntriesCalculationTest,UserGroupAttributePredicateIntegrationTest,UserTypeSegmentsProviderIntegrationTest,ValidateCurrencyInterceptorTest,VariantProductIntegrationTest,WorkflowActionDefaultCodeInterceptorTest,WorkflowDecisionDefaultCodeInterceptorTest,WorkflowItemAttachmentDefaultCodeInterceptorTest,WorkflowTemplateDefaultCodeInterceptorTest,XMLExternalEntityExpansionTest,XMLExternalEntityExpansionTest,ZoneDeliveryModeValueDaoTest
-
Field Summary
FieldsFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic voidprotected org.springframework.context.ApplicationContextprotected static voidDelegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#importCsv(java.lang.String, java.lang.String)voidimportData(ImpExResource resource) Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#importData(de.hybris.platform.servicelayer.impex.ImpExResource, de.hybris.platform.servicelayer.impex.ImportService)importData(ImportConfig config) Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#importData(de.hybris.platform.servicelayer.impex.ImportConfig, de.hybris.platform.servicelayer.impex.ImportService)voidimportData(String resource, String encoding) Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#importData(java.lang.String, java.lang.String, de.hybris.platform.servicelayer.impex.ImportService)protected static voidimportStream(InputStream is, String encoding, String resourceName) protected static voidimportStream(InputStream is, String encoding, String resourceName, boolean hijackExceptions) protected booleanDelegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#isPrefetchModeNone()Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Field Details
-
importService
-
-
Constructor Details
-
ServicelayerTest
protected ServicelayerTest()
-
-
Method Details
-
createCoreData
- Throws:
Exception
-
createDefaultCatalog
- Throws:
Exception
-
createHardwareCatalog
- Throws:
Exception
-
createDefaultUsers
- Throws:
Exception
-
importData
Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#importData(java.lang.String, java.lang.String, de.hybris.platform.servicelayer.impex.ImportService)- Parameters:
resource- location of classpath resource that will be importedencoding- encoding of classpath resource- Throws:
ImpExException
-
importData
Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#importData(de.hybris.platform.servicelayer.impex.ImpExResource, de.hybris.platform.servicelayer.impex.ImportService)- Parameters:
resource- impex resource to load- Throws:
ImpExException
-
importData
Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#importData(de.hybris.platform.servicelayer.impex.ImportConfig, de.hybris.platform.servicelayer.impex.ImportService)- Parameters:
config- with import details.- Returns:
- import result
- Throws:
ImpExException
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext()- Overrides:
getApplicationContextin classServicelayerBaseTest
-
importCsv
Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#importCsv(java.lang.String, java.lang.String)- Parameters:
csvFile- name of file to import from classpathencoding- encoding to use- Throws:
ImpExException
-
importStream
protected static void importStream(InputStream is, String encoding, String resourceName) throws ImpExException - Throws:
ImpExException
-
importStream
protected static void importStream(InputStream is, String encoding, String resourceName, boolean hijackExceptions) throws ImpExException - Throws:
ImpExException
-
isPrefetchModeNone
protected boolean isPrefetchModeNone()Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#isPrefetchModeNone()
-