Use InternalLogger in our code / Use jul in examples

This commit is contained in:
Trustin Lee 2013-02-11 20:37:31 +09:00
parent 9071a624b2
commit 984276355c
4 changed files with 11 additions and 12 deletions

View File

@ -17,13 +17,10 @@ package org.jboss.netty.handler.codec.socks;
import org.jboss.netty.handler.codec.embedder.DecoderEmbedder; import org.jboss.netty.handler.codec.embedder.DecoderEmbedder;
import org.junit.Test; import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.junit.Assert.*; import static org.junit.Assert.*;
public class SocksAuthRequestDecoderTest { public class SocksAuthRequestDecoderTest {
private static final Logger logger = LoggerFactory.getLogger(SocksAuthRequestDecoderTest.class);
@Test @Test
public void testAuthRequestDecoder() throws Exception{ public void testAuthRequestDecoder() throws Exception{
String username = "test"; String username = "test";

View File

@ -16,14 +16,15 @@
package org.jboss.netty.handler.codec.socks; package org.jboss.netty.handler.codec.socks;
import org.jboss.netty.handler.codec.embedder.DecoderEmbedder; import org.jboss.netty.handler.codec.embedder.DecoderEmbedder;
import org.jboss.netty.logging.InternalLogger;
import org.jboss.netty.logging.InternalLoggerFactory;
import org.junit.Test; import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.junit.Assert.*; import static org.junit.Assert.*;
public class SocksAuthResponseDecoderTest { public class SocksAuthResponseDecoderTest {
private static final Logger logger = LoggerFactory.getLogger(SocksAuthResponseDecoderTest.class); private static final InternalLogger logger = InternalLoggerFactory.getInstance(SocksAuthResponseDecoderTest.class);
private static void testSocksAuthResponseDecoderWithDifferentParams(SocksMessage.AuthStatus authStatus) private static void testSocksAuthResponseDecoderWithDifferentParams(SocksMessage.AuthStatus authStatus)
throws Exception{ throws Exception{
logger.debug("Testing SocksAuthResponseDecoder with authStatus: "+ authStatus); logger.debug("Testing SocksAuthResponseDecoder with authStatus: "+ authStatus);

View File

@ -16,15 +16,15 @@
package org.jboss.netty.handler.codec.socks; package org.jboss.netty.handler.codec.socks;
import org.jboss.netty.handler.codec.embedder.DecoderEmbedder; import org.jboss.netty.handler.codec.embedder.DecoderEmbedder;
import org.jboss.netty.logging.InternalLogger;
import org.jboss.netty.logging.InternalLoggerFactory;
import org.junit.Test; import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sun.net.util.IPAddressUtil; import sun.net.util.IPAddressUtil;
import static org.junit.Assert.*; import static org.junit.Assert.*;
public class SocksCmdRequestDecoderTest { public class SocksCmdRequestDecoderTest {
private static final Logger logger = LoggerFactory.getLogger(SocksCmdRequestDecoderTest.class); private static final InternalLogger logger = InternalLoggerFactory.getInstance(SocksCmdRequestDecoderTest.class);
private static void testSocksCmdRequestDecoderWithDifferentParams(SocksMessage.CmdType cmdType, private static void testSocksCmdRequestDecoderWithDifferentParams(SocksMessage.CmdType cmdType,
SocksMessage.AddressType addressType, String host, int port) throws Exception { SocksMessage.AddressType addressType, String host, int port) throws Exception {

View File

@ -16,13 +16,14 @@
package org.jboss.netty.handler.codec.socks; package org.jboss.netty.handler.codec.socks;
import org.jboss.netty.handler.codec.embedder.DecoderEmbedder; import org.jboss.netty.handler.codec.embedder.DecoderEmbedder;
import org.jboss.netty.logging.InternalLogger;
import org.jboss.netty.logging.InternalLoggerFactory;
import org.junit.Test; import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.junit.Assert.*; import static org.junit.Assert.*;
public class SocksCmdResponseDecoderTest { public class SocksCmdResponseDecoderTest {
private static final Logger logger = LoggerFactory.getLogger(SocksCmdResponseDecoderTest.class); private static final InternalLogger logger = InternalLoggerFactory.getInstance(SocksCmdResponseDecoderTest.class);
private static void testSocksCmdResponseDecoderWithDifferentParams(SocksMessage.CmdStatus cmdStatus, private static void testSocksCmdResponseDecoderWithDifferentParams(SocksMessage.CmdStatus cmdStatus,
SocksMessage.AddressType addressType) throws Exception { SocksMessage.AddressType addressType) throws Exception {