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)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.core.env.Environmentprotected org.broadleafcommerce.common.config.dao.SystemPropertiesDaoprotected org.broadleafcommerce.common.config.service.SystemPropertiesServiceFields inherited from class org.broadleafcommerce.test.TestNGSiteIntegrationSetup
LOGFields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
applicationContext, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClear out the cache since the SystemPropertiesService/Dao will have cached a not foundvoidvoidMethods inherited from class org.broadleafcommerce.test.TestNGSiteIntegrationSetup
logStart, logWhenDone, reSetApplicationContextMethods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
-
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
-