trivialmatchertest.java

来自「Java开发最新的日志记录工具slf4j的源码」· Java 代码 · 共 24 行

JAVA
24
字号
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"));  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?