mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-05 07:48:05 +07:00
Improved logging granularity in tests
This commit is contained in:
@ -10,16 +10,22 @@ import com.riiablo.RiiabloTest;
|
||||
import com.riiablo.excel2.txt.MonStats;
|
||||
import com.riiablo.logger.Level;
|
||||
import com.riiablo.logger.LogManager;
|
||||
import com.riiablo.logger.MDC;
|
||||
|
||||
public class ExcelTest extends RiiabloTest {
|
||||
@org.junit.BeforeClass
|
||||
public static void before() {
|
||||
LogManager.setLevel("com.riiablo.excel2", Level.TRACE);
|
||||
LogManager.setLevel("com.riiablo.excel2.Excel", Level.TRACE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void parse_monstats_columns() throws IOException {
|
||||
FileHandle handle = Gdx.files.internal("test/monstats.txt");
|
||||
Excel.loadTxt(new MonStats(), handle);
|
||||
try {
|
||||
MDC.put("excel", handle.path());
|
||||
Excel.loadTxt(new MonStats(), handle);
|
||||
} finally {
|
||||
MDC.remove("excel");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ import com.riiablo.logger.LogManager;
|
||||
public class SerializerGeneratorTest extends RiiabloTest {
|
||||
@BeforeClass
|
||||
public static void before() {
|
||||
LogManager.setLevel("com.riiablo.excel2", Level.TRACE);
|
||||
LogManager.setLevel("com.riiablo.excel2.SerializerGenerator", Level.TRACE);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -14,7 +14,7 @@ import com.riiablo.logger.LogManager;
|
||||
public class TxtParserTest extends RiiabloTest {
|
||||
@org.junit.BeforeClass
|
||||
public static void before() {
|
||||
LogManager.setLevel("com.riiablo.excel2", Level.TRACE);
|
||||
LogManager.setLevel("com.riiablo.excel2.TxtParser", Level.TRACE);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user