TrivialMatcherTest.java :  » Development » SLF4J » org » slf4j » migrator » line » Java Open Source

Java Open Source » Development » SLF4J 
SLF4J » org » slf4j » migrator » line » TrivialMatcherTest.java
package org.slf4j.migrator.line;

import org.slf4j.migrator.line.LineConverter;

import junit.framework.TestCase;

public class TrivialMatcherTest extends TestCase {

  public void testSimpleReplacement() {
    LineConverter trivialLC = new LineConverter(new TrivialMatcher());


    // "import org.slf4j.converter" -- > simple replacement with an unique
    // capturing group
    assertEquals("simple replacement with an unique capturing group",
        trivialLC.getOneLineReplacement("import org.slf4j.converter"));

    assertEquals("1st group second group 4th group", trivialLC
        .getOneLineReplacement("first group second group third group 4th group"));

  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.