mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -15,6 +15,7 @@ package org.dromara.hutool.core.util;
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.dromara.hutool.core.convert.Convert;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -223,8 +224,8 @@ public class ObjUtilTest {
|
||||
|
||||
@Test
|
||||
public void toStringTest() {
|
||||
Assertions.assertEquals("null", ObjUtil.toString(null));
|
||||
Assertions.assertEquals(Collections.emptyMap().toString(), ObjUtil.toString(Collections.emptyMap()));
|
||||
Assertions.assertEquals("null", Convert.toStrOrNullStr(null));
|
||||
Assertions.assertEquals(Collections.emptyMap().toString(), Convert.toStrOrNullStr(Collections.emptyMap()));
|
||||
Assertions.assertEquals("[1, 2]", Arrays.asList("1", "2").toString());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user