1 package ch.qos.logback.classic; 2 3 import org.junit.jupiter.api.Test; 4 5 import static org.junit.jupiter.api.Assertions.assertEquals; 6 7 public class LevelTest { 8 9 @Test 10 public void smoke() { 11 assertEquals(Level.TRACE, Level.toLevel("TRACE")); 12 assertEquals(Level.DEBUG, Level.toLevel("DEBUG")); 13 assertEquals(Level.INFO, Level.toLevel("INFO")); 14 assertEquals(Level.WARN, Level.toLevel("WARN")); 15 assertEquals(Level.ERROR, Level.toLevel("ERROR")); 16 } 17 18 @Test 19 public void withSpaceSuffix() { 20 assertEquals(Level.INFO, Level.toLevel("INFO ")); 21 } 22 }