Class PropertyConfigSwitcher

java.lang.Object
de.hybris.platform.testframework.PropertyConfigSwitcher

public class PropertyConfigSwitcher extends Object
This class is a helper for temporarily switch property configuration for testing purposes.
  • Constructor Details

    • PropertyConfigSwitcher

      public PropertyConfigSwitcher(String propertyName)
  • Method Details

    • switchToValue

      public void switchToValue(String value)
      Switches property to the given value. Usually usable in the setUp method of the test.
    • switchBackToDefault

      public void switchBackToDefault()
      Switches property back to the default. Usually usable in the tearDown method of the test.