Class SystemPropertiesTest

java.lang.Object
org.springframework.test.context.testng.AbstractTestNGSpringContextTests
org.broadleafcommerce.test.TestNGSiteIntegrationSetup
org.broadleafcommerce.common.config.SystemPropertiesTest
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.testng.IHookable, org.testng.ITestNGListener

@ContextHierarchy(@ContextConfiguration(name="siteRoot")) public class SystemPropertiesTest extends TestNGSiteIntegrationSetup
Tests for the interactions between the system properties service as apart of the Spring Environment
Author:
Phillip Verheyden (phillipuniverse)
  • Field Details

    • env

      @Autowired protected org.springframework.core.env.Environment env
    • propsSvc

      @Autowired protected org.broadleafcommerce.common.config.service.SystemPropertiesService propsSvc
    • propsDao

      @Autowired protected org.broadleafcommerce.common.config.dao.SystemPropertiesDao propsDao
  • Constructor Details

    • SystemPropertiesTest

      public SystemPropertiesTest()
  • Method Details

    • testEnvironmentResolvedFromDatabase

      @Transactional public void testEnvironmentResolvedFromDatabase()
    • testOverridesPropertyFiles

      @Transactional public void testOverridesPropertyFiles()
    • clearSystemPropertiesCache

      protected void clearSystemPropertiesCache()
      Clear out the cache since the SystemPropertiesService/Dao will have cached a not found