Class SAPLoggingProxyListenerTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.e2e.hybrisrootcauseanalysis.exceptionanalysis.SAPLoggingProxyListenerTest
-
- All Implemented Interfaces:
JaloSessionHolder
public class SAPLoggingProxyListenerTest extends ServicelayerTest
Unit tests for the SAPLoggingProxyListener class
-
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.TemporaryFoldertemporaryFolder-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description SAPLoggingProxyListenerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtearDown()voidtestDynamicTraceToggling()voidtestLogDebugSeverity()voidtestLogFileCreation()voidtestLogWarnSeverity()voidtestNoneSeverityForLogAndTrace()voidtestRootLoggerLevelChangeEffect()Test the effect of changing the root logger's logging level.-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp()
-
tearDown
public void tearDown()
-
testRootLoggerLevelChangeEffect
public void testRootLoggerLevelChangeEffect() throws java.io.IOExceptionTest the effect of changing the root logger's logging level. The root logger will determine the basic threshold for all logging events. If it is set to OFF, nothing will ever get written no matter what logging/tracing severities are set. Similarly, if it is set to ALL or DEBUG, then it will allow the ListLog API to further determine what to log and what not to log.- Throws:
java.io.IOException
-
testLogFileCreation
public void testLogFileCreation() throws java.io.IOException- Throws:
java.io.IOException
-
testDynamicTraceToggling
public void testDynamicTraceToggling() throws java.io.IOException- Throws:
java.io.IOException
-
testLogDebugSeverity
public void testLogDebugSeverity() throws java.io.IOException- Throws:
java.io.IOException
-
testLogWarnSeverity
public void testLogWarnSeverity() throws java.io.IOException- Throws:
java.io.IOException
-
testNoneSeverityForLogAndTrace
public void testNoneSeverityForLogAndTrace() throws java.io.IOException- Throws:
java.io.IOException
-
-