From 2be12ebce3d600804227f6b74374c8db37921139 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 11 Dec 2017 22:55:51 +0300 Subject: fix some tests --- .../src/test/java/com/juick/components/test/NotificationTests.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'juick-notifications/src/test/java') diff --git a/juick-notifications/src/test/java/com/juick/components/test/NotificationTests.java b/juick-notifications/src/test/java/com/juick/components/test/NotificationTests.java index cc02b07d..9688e935 100644 --- a/juick-notifications/src/test/java/com/juick/components/test/NotificationTests.java +++ b/juick-notifications/src/test/java/com/juick/components/test/NotificationTests.java @@ -17,6 +17,7 @@ package com.juick.components.test; +import ch.qos.logback.classic.Level; import ch.qos.logback.classic.Logger; import ch.qos.logback.classic.spi.LoggingEvent; import ch.qos.logback.core.Appender; @@ -62,6 +63,7 @@ public class NotificationTests { ch.qos.logback.classic.Logger root = (ch.qos.logback.classic.Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME); final Appender mockAppender = mock(Appender.class); when(mockAppender.getName()).thenReturn("MOCK"); + root.setLevel(Level.DEBUG); root.addAppender(mockAppender); cleanUp.cleanupTokens(); verify(mockAppender).doAppend(argThat(argument -> -- cgit v1.2.3