Package ubic.gemma.web.logging
Class SlackAppenderTest
- java.lang.Object
-
- ubic.gemma.web.logging.SlackAppenderTest
-
public class SlackAppenderTest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description org.mockito.junit.MockitoRulemockitoRule
-
Constructor Summary
Constructors Constructor Description SlackAppenderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtest()voidtestWarnLogsShouldNotBeAppended()voidtestWhenSlackApiRaisesException()voidtestWhenSlackFailsToClose()voidtestWithStacktrace()
-
-
-
Method Detail
-
setUp
public void setUp()
-
testWithStacktrace
public void testWithStacktrace() throws com.slack.api.methods.SlackApiException, IOException- Throws:
com.slack.api.methods.SlackApiExceptionIOException
-
testWarnLogsShouldNotBeAppended
public void testWarnLogsShouldNotBeAppended()
-
testWhenSlackApiRaisesException
public void testWhenSlackApiRaisesException() throws com.slack.api.methods.SlackApiException, IOException- Throws:
com.slack.api.methods.SlackApiExceptionIOException
-
-