mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-06 00:08:19 +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.excel2.txt.MonStats;
|
||||||
import com.riiablo.logger.Level;
|
import com.riiablo.logger.Level;
|
||||||
import com.riiablo.logger.LogManager;
|
import com.riiablo.logger.LogManager;
|
||||||
|
import com.riiablo.logger.MDC;
|
||||||
|
|
||||||
public class ExcelTest extends RiiabloTest {
|
public class ExcelTest extends RiiabloTest {
|
||||||
@org.junit.BeforeClass
|
@org.junit.BeforeClass
|
||||||
public static void before() {
|
public static void before() {
|
||||||
LogManager.setLevel("com.riiablo.excel2", Level.TRACE);
|
LogManager.setLevel("com.riiablo.excel2.Excel", Level.TRACE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void parse_monstats_columns() throws IOException {
|
public void parse_monstats_columns() throws IOException {
|
||||||
FileHandle handle = Gdx.files.internal("test/monstats.txt");
|
FileHandle handle = Gdx.files.internal("test/monstats.txt");
|
||||||
|
try {
|
||||||
|
MDC.put("excel", handle.path());
|
||||||
Excel.loadTxt(new MonStats(), handle);
|
Excel.loadTxt(new MonStats(), handle);
|
||||||
|
} finally {
|
||||||
|
MDC.remove("excel");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ import com.riiablo.logger.LogManager;
|
|||||||
public class SerializerGeneratorTest extends RiiabloTest {
|
public class SerializerGeneratorTest extends RiiabloTest {
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void before() {
|
public static void before() {
|
||||||
LogManager.setLevel("com.riiablo.excel2", Level.TRACE);
|
LogManager.setLevel("com.riiablo.excel2.SerializerGenerator", Level.TRACE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -14,7 +14,7 @@ import com.riiablo.logger.LogManager;
|
|||||||
public class TxtParserTest extends RiiabloTest {
|
public class TxtParserTest extends RiiabloTest {
|
||||||
@org.junit.BeforeClass
|
@org.junit.BeforeClass
|
||||||
public static void before() {
|
public static void before() {
|
||||||
LogManager.setLevel("com.riiablo.excel2", Level.TRACE);
|
LogManager.setLevel("com.riiablo.excel2.TxtParser", Level.TRACE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user