From 6801298956af84fe8d611bb9ed6d2f72e27506cc Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 26 Aug 2008 05:43:41 +0000 Subject: [PATCH] More test coverage --- src/test/java/org/jboss/netty/util/ConversionUtilTest.java | 1 + src/test/java/org/jboss/netty/util/MapUtilTest.java | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/test/java/org/jboss/netty/util/ConversionUtilTest.java b/src/test/java/org/jboss/netty/util/ConversionUtilTest.java index f91ecfe4cf..858236b2fa 100644 --- a/src/test/java/org/jboss/netty/util/ConversionUtilTest.java +++ b/src/test/java/org/jboss/netty/util/ConversionUtilTest.java @@ -72,6 +72,7 @@ public class ConversionUtilTest { assertTrue(ConversionUtil.toBoolean("TRUE")); assertTrue(ConversionUtil.toBoolean("42")); + assertFalse(ConversionUtil.toBoolean("")); assertFalse(ConversionUtil.toBoolean("n")); assertFalse(ConversionUtil.toBoolean("no")); assertFalse(ConversionUtil.toBoolean("NO")); diff --git a/src/test/java/org/jboss/netty/util/MapUtilTest.java b/src/test/java/org/jboss/netty/util/MapUtilTest.java index 2395103e92..29c0d7bb4d 100644 --- a/src/test/java/org/jboss/netty/util/MapUtilTest.java +++ b/src/test/java/org/jboss/netty/util/MapUtilTest.java @@ -29,6 +29,8 @@ import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.Set; +import java.util.logging.Level; +import java.util.logging.Logger; import org.junit.Test; @@ -42,6 +44,11 @@ import org.junit.Test; */ public class MapUtilTest { + static { + Logger logger = Logger.getLogger(MapUtil.class.getName()); + logger.setLevel(Level.ALL); + } + @Test public void shouldReturnTrueIfLinkedHashMap() { assertTrue(MapUtil.isOrderedMap(new LinkedHashMap()));