Class HybrisToLog4j2PropsConverterTest

java.lang.Object
de.hybris.platform.util.logging.log4j2.HybrisToLog4j2PropsConverterTest

@UnitTest public class HybrisToLog4j2PropsConverterTest extends Object
  • Constructor Details

    • HybrisToLog4j2PropsConverterTest

      public HybrisToLog4j2PropsConverterTest()
  • Method Details

    • setUp

      public void setUp()
    • cleanup

      public void cleanup()
    • shouldUpdatePatternWhenAnsiDisabled

      public void shouldUpdatePatternWhenAnsiDisabled()
    • shouldNotUpdatePatternWithoutHighlightWhenAnsiDisabled

      public void shouldNotUpdatePatternWithoutHighlightWhenAnsiDisabled()
    • shouldUpdatePatternWithColorsWhenAnsiDisabled

      public void shouldUpdatePatternWithColorsWhenAnsiDisabled()
    • shouldUpdatePatternWithStyleWhenAnsiDisabled

      public void shouldUpdatePatternWithStyleWhenAnsiDisabled()
    • shouldUpdatePatternWithHighlightStyleWhenAnsiDisabled

      public void shouldUpdatePatternWithHighlightStyleWhenAnsiDisabled()
    • shouldUpdateInlinePatternWhenAnsiDisabled

      public void shouldUpdateInlinePatternWhenAnsiDisabled()
    • shouldUpdatePatternWithInlineAndStyleWhenAnsiDisabled

      public void shouldUpdatePatternWithInlineAndStyleWhenAnsiDisabled()
    • shouldUpdatePatternWithColorStylesWhenAnsiDisabled

      public void shouldUpdatePatternWithColorStylesWhenAnsiDisabled()
    • givenAnsiColorsAreDisabledWithLayoutPattern

      protected Properties givenAnsiColorsAreDisabledWithLayoutPattern(String layout)
      Sets console layout to given pattern and disables ANSI colors.
    • assertThatPatternIsWithoutHighlights

      protected void assertThatPatternIsWithoutHighlights(Properties hybrisProperties, Properties log4jProperties)
      Asserts that the console layout pattern does not include highlight syntax.
    • shouldNotSetPatternWhenAnsiDisabledAndPatternNotSet

      public void shouldNotSetPatternWhenAnsiDisabledAndPatternNotSet()
    • shouldRemoveHighlightSyntaxWhenItCapturesWholeText

      public void shouldRemoveHighlightSyntaxWhenItCapturesWholeText()
    • shouldRemoveHighlightSyntaxWhenItCapturesBeginingOfText

      public void shouldRemoveHighlightSyntaxWhenItCapturesBeginingOfText()
    • shouldRemoveHighlightSyntaxWhenItCapturesMiddleOfText

      public void shouldRemoveHighlightSyntaxWhenItCapturesMiddleOfText()
    • shouldRemoveHighlightSyntaxWithStyleWhenItCapturesMiddleOfText

      public void shouldRemoveHighlightSyntaxWithStyleWhenItCapturesMiddleOfText()
    • shouldRemoveHighlightSyntaxWithStyleWhenItCapturesEndOfText

      public void shouldRemoveHighlightSyntaxWithStyleWhenItCapturesEndOfText()
    • shouldDoNothingWhenErrorInSyntax

      public void shouldDoNothingWhenErrorInSyntax()
    • shouldDoNothingWhenErrorInSyntax2

      public void shouldDoNothingWhenErrorInSyntax2()
    • shouldReturnAllProperties

      public void shouldReturnAllProperties()
    • shouldReturnPropertiesWithRemoveLog4jPropertyAndChangedLayoutType

      public void shouldReturnPropertiesWithRemoveLog4jPropertyAndChangedLayoutType()
    • shouldReturnPropertiesWithoutRemoveLog4jProperty

      public void shouldReturnPropertiesWithoutRemoveLog4jProperty()
    • shouldReturnPropertiesWithout2RemoveLog4jProperties

      public void shouldReturnPropertiesWithout2RemoveLog4jProperties()
    • shouldReturnPropertiesForLog4j2

      public void shouldReturnPropertiesForLog4j2()
    • shouldReturnPropertiesForLog4j2With2Remove

      public void shouldReturnPropertiesForLog4j2With2Remove()