mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-06-18 02:30:25 +08:00
去掉slf4j
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
package mgmt;
|
||||
|
||||
import common.LoggerHelper;
|
||||
import component.*;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.LoggerFactory;
|
||||
//import org.slf4j.LoggerFactory;
|
||||
import packet.Interest;
|
||||
|
||||
public class CommandBaseTest {
|
||||
private static final org.slf4j.Logger logger = LoggerFactory.getLogger(CommandBaseTest.class);
|
||||
// private static final org.slf4j.Logger logger = LoggerFactory.getLogger(CommandBaseTest.class);
|
||||
@Test
|
||||
public void testCreateAndParseCommand(){
|
||||
|
||||
@@ -31,7 +32,7 @@ public class CommandBaseTest {
|
||||
ControlParameters cp = CommandBase.parseControlParameters(interest);
|
||||
System.out.println(cp);
|
||||
}catch (Exception ex){
|
||||
logger.debug(ex.getMessage());
|
||||
LoggerHelper.info(ex.getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
package mgmt;
|
||||
|
||||
import minsecurity.identity.TestIdentity;
|
||||
//import minsecurity.identity.TestIdentity;
|
||||
import common.LoggerHelper;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.LoggerFactory;
|
||||
//import org.slf4j.LoggerFactory;
|
||||
|
||||
public class ControlResponseTest {
|
||||
private static final org.slf4j.Logger logger = LoggerFactory.getLogger(ControlResponseTest.class);
|
||||
// private static final org.slf4j.Logger logger = LoggerFactory.getLogger(ControlResponseTest.class);
|
||||
@Test
|
||||
public void testUnmarshal(){
|
||||
try{
|
||||
@@ -14,7 +15,7 @@ public class ControlResponseTest {
|
||||
// Data无法解析
|
||||
response.UnmarshalJSON(jsonString.getBytes());
|
||||
}catch (Exception ex){
|
||||
logger.debug(ex.getMessage());
|
||||
LoggerHelper.info(ex.getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user