Examples of JCLRuleSet


Examples of org.slf4j.migrator.line.JCLRuleSet

   * @return AbstractMatcher implementation
   */
  public static RuleSet getMatcherImpl(int conversionType) {
    switch (conversionType) {
    case Constant.JCL_TO_SLF4J:
      return new JCLRuleSet();
    case Constant.LOG4J_TO_SLF4J:
      return new Log4jRuleSet();
    case Constant.JUL_TO_SLF4J:
        return new JULRuleSet();
    case Constant.NOP_TO_SLF4J:
View Full Code Here

Examples of org.slf4j.migrator.line.JCLRuleSet

   * Log4j implementation
   */
  public void testJclOverLog4jConversion() {
    // running jcl to slf4j conversion
    //JCLMatcher jclMatcher =
    LineConverter jclLineConverter = new LineConverter(new JCLRuleSet());
    // no changes on log4j.LogManager import
    assertEquals("import org.apache.log4j.LogManager;", jclLineConverter
        .getOneLineReplacement("import org.apache.log4j.LogManager;"));
    // no changes on log4j.Logger import
    assertEquals("import org.apache.log4j.Logger;", jclLineConverter
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.