mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix test
This commit is contained in:
parent
8b3789e393
commit
4552fa27c6
@ -4,7 +4,6 @@ import cn.hutool.core.collection.CollUtil;
|
|||||||
import cn.hutool.core.collection.ListUtil;
|
import cn.hutool.core.collection.ListUtil;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.hamcrest.CoreMatchers;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -35,9 +34,9 @@ public class StrJoinerTest {
|
|||||||
public void joinMultiArrayTest(){
|
public void joinMultiArrayTest(){
|
||||||
final StrJoiner append = StrJoiner.of(",");
|
final StrJoiner append = StrJoiner.of(",");
|
||||||
append.append(new Object[]{ListUtil.of("1", "2"),
|
append.append(new Object[]{ListUtil.of("1", "2"),
|
||||||
CollUtil.newHashSet("3", "4")
|
CollUtil.newLinkedHashSet("3", "4")
|
||||||
});
|
});
|
||||||
Assert.assertThat(append.toString(), CoreMatchers.anyOf(CoreMatchers.is("1,2,3,4"), CoreMatchers.is("1,2,4,3")));
|
Assert.assertEquals("1,2,3,4", append.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user