More test coverage
This commit is contained in:
parent
1ae5312777
commit
6801298956
@ -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"));
|
||||
|
@ -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>()));
|
||||
|
Loading…
Reference in New Issue
Block a user