Class JUnitSiteIntegrationSetup

java.lang.Object
org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
org.broadleafcommerce.test.junit.JUnitSiteIntegrationSetup
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@BroadleafSiteIntegrationTest @TestExecutionListeners({org.springframework.test.context.web.ServletTestExecutionListener.class,org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener.class,org.springframework.test.context.event.ApplicationEventsTestExecutionListener.class,org.springframework.test.context.support.DependencyInjectionTestExecutionListener.class,org.springframework.test.context.support.DirtiesContextTestExecutionListener.class,org.springframework.test.context.event.EventPublishingTestExecutionListener.class,org.springframework.test.context.transaction.TransactionalTestExecutionListener.class,org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener.class}) public class JUnitSiteIntegrationSetup extends org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests

Used as a customization point so that you can extend this class and add additional beans to the live Broadleaf ApplicationContext. This also adds the additional default TestExecutionListeners that are not included in the Spring super class.

This class hierarchy must be used if you are making any customizations to the ApplicationContext. If you do not need any addtiional customizations for your tests then you can just use @BroadleafAdminIntegrationTest directly.

Author:
Phillip Verheyden (phillipuniverse)
See Also:
  • Field Summary

    Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests

    applicationContext, logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests

    setApplicationContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JUnitSiteIntegrationSetup

      public JUnitSiteIntegrationSetup()
  • Method Details

    • testContext

      public void testContext()