1   package org.slf4j.migrator.line;
2   
3   import org.slf4j.migrator.line.LineConverter;
4   
5   import junit.framework.TestCase;
6   
7   public class TrivialMatcherTest extends TestCase {
8   
9     public void testSimpleReplacement() {
10      LineConverter trivialLC = new LineConverter(new TrivialMatcher());
11  
12  
13      // "import org.slf4j.converter" -- > simple replacement with an unique
14      // capturing group
15      assertEquals("simple replacement with an unique capturing group",
16          trivialLC.getOneLineReplacement("import org.slf4j.converter"));
17  
18      assertEquals("1st group second group 4th group", trivialLC
19          .getOneLineReplacement("first group second group third group 4th group"));
20  
21    }
22  
23  }