More test coverage

This commit is contained in:
Trustin Lee 2008-08-26 05:43:41 +00:00
parent 1ae5312777
commit 6801298956
2 changed files with 8 additions and 0 deletions

View File

@ -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"));

View File

@ -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<String, String>()));