001package ch.qos.logback.classic;
002
003import static org.junit.Assert.assertEquals;
004
005import org.junit.Test;
006
007public class LevelTest {
008
009    
010    
011    @Test
012    public void smoke( ) {
013        assertEquals(Level.TRACE, Level.toLevel("TRACE"));
014        assertEquals(Level.DEBUG, Level.toLevel("DEBUG"));
015        assertEquals(Level.INFO, Level.toLevel("INFO"));
016        assertEquals(Level.WARN, Level.toLevel("WARN"));
017        assertEquals(Level.ERROR, Level.toLevel("ERROR"));
018    }
019    
020    @Test
021    public void withSpaceSuffix( ) {
022        assertEquals(Level.INFO, Level.toLevel("INFO "));
023    }
024}