View Javadoc
1   package ch.qos.logback.classic.spi;
2   
3   import ch.qos.logback.classic.LoggerContext;
4   import org.junit.jupiter.api.Test;
5   
6   import static org.junit.jupiter.api.Assertions.assertTrue;
7   
8   public class LogbackServiceProviderTest {
9   
10      LogbackServiceProvider provider = new LogbackServiceProvider();
11  
12      @Test
13      public void testContrxtStart() {
14          provider.initialize();
15          LoggerContext loggerFactory = (LoggerContext) provider.getLoggerFactory();
16  
17          assertTrue(loggerFactory.isStarted());
18  
19      }
20  }